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.
This commit is contained in:
EinfachToll 2018-02-10 21:41:07 +01:00
parent 4e16db926f
commit 68ad4675a3

View File

@ -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