commit 68ad4675a3f740f9ad116308a4230775b14ddf35
parent 4e16db926f86ebcd068bd3b2c65ba36ff1fed463
Author: EinfachToll <istjanichtzufassen@googlemail.com>
Date: Sat, 10 Feb 2018 21:41:07 +0100
Remove b:undo_ftplugin to speed up buffer loading
If this variable is present, then for some reason the complete ftplugin
file is sourced everytime a Vimwiki buffer is entered, even if the
buffer has been entered before, i.e. the guard b:did_ftplugin has no
effect. (See /usr/share/vimXX/ftplugin.vim)
Deleting these lines. I don't think undoing the settings is a common use
case, anyway.
Diffstat:
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/ftplugin/vimwiki.vim b/ftplugin/vimwiki.vim
@@ -8,15 +8,6 @@ endif
let b:did_ftplugin = 1 " Don't load another plugin for this buffer
-" UNDO list {{{
-" Reset the following options to undo this plugin.
-let b:undo_ftplugin = "setlocal ".
- \ "suffixesadd< isfname< formatlistpat< ".
- \ "formatoptions< foldtext< ".
- \ "foldmethod< foldexpr< commentstring< tags< omnifunc< autoindent< ".
- \ "smartindent< cindent< comments< formatoptions<"
-" UNDO }}}
-
" MISC STUFF {{{
setlocal commentstring=%%%s