aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/help.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-16 22:15:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-16 22:15:25 +1200
commit61ab140a20917349876581872db4a369c18a0d1f (patch)
treea6b3c25df743f609e29795dc1bbcb1268c3bea29 /vim/after/ftplugin/help.vim
parentDon't set vint compiler for commandline windows (diff)
downloaddotfiles-61ab140a20917349876581872db4a369c18a0d1f.tar.gz
dotfiles-61ab140a20917349876581872db4a369c18a0d1f.zip
Work around buggy old Vim 'help' ftplugin undo
Diffstat (limited to 'vim/after/ftplugin/help.vim')
-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