From 68ad4675a3f740f9ad116308a4230775b14ddf35 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Sat, 10 Feb 2018 21:41:07 +0100 Subject: [PATCH] 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. --- ftplugin/vimwiki.vim | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ftplugin/vimwiki.vim b/ftplugin/vimwiki.vim index af6758b..b75ea1f 100644 --- 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