From 556f686431d990166ff993f87779b36d6c71a5f8 Mon Sep 17 00:00:00 2001 From: Ivan Tishchenko Date: Mon, 2 Feb 2015 22:07:17 +0300 Subject: [PATCH] Make VimwikiGetKnownExtensions into script-local function s:vimwiki_get_known_extensions --- plugin/vimwiki.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/vimwiki.vim b/plugin/vimwiki.vim index aebf796..00e26df 100644 --- a/plugin/vimwiki.vim +++ b/plugin/vimwiki.vim @@ -357,7 +357,7 @@ function! VimwikiClear(option, ...) "{{{ endfunction "}}} " }}} -function! VimwikiGetKnownExtensions() " {{{ +function! s:vimwiki_get_known_extensions() " {{{ " Getting all extensions that different wikis could have let extensions = {} for wiki in g:vimwiki_list @@ -503,7 +503,7 @@ augroup end augroup vimwiki autocmd! - for s:ext in VimwikiGetKnownExtensions() + for s:ext in s:vimwiki_get_known_extensions() exe 'autocmd BufEnter *'.s:ext.' call s:setup_buffer_reenter()' exe 'autocmd BufWinEnter *'.s:ext.' call s:setup_buffer_enter()' exe 'autocmd BufLeave,BufHidden *'.s:ext.' call s:setup_buffer_leave()'