I hit the problem when loading a fugitive window, but this should be done for all filetype plug-ins before trying to append to the variable.
8 lines
162 B
VimL
8 lines
162 B
VimL
if !exists("b:undo_ftplugin")
|
|
let b:undo_ftplugin=''
|
|
endif
|
|
|
|
" Enable spell checking on commit messages
|
|
setlocal spell
|
|
let b:undo_ftplugin.='|setlocal spell<'
|