aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/help.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/after/ftplugin/help.vim b/vim/after/ftplugin/help.vim
index db621315..71ad3a8d 100644
--- a/vim/after/ftplugin/help.vim
+++ b/vim/after/ftplugin/help.vim
@@ -3,6 +3,12 @@ if &filetype !=# 'help' || v:version < 700
finish
endif
+" This variable had the wrong name before Vim 7.1
+if v:version == 700 && exists('b:undo_plugin')
+ let b:undo_ftplugin = b:undo_plugin
+ unlet b:undo_plugin
+endif
+
" If the buffer is modifiable and writable, we're writing documentation, not
" reading it; don't conceal characters
if has('conceal') && &modifiable && !&readonly