aboutsummaryrefslogtreecommitdiff
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
parent72973f7e88c53f6d12278f995dcb54071c896afa (diff)
downloaddotfiles-61ab140a20917349876581872db4a369c18a0d1f.tar.gz
Work around buggy old Vim 'help' ftplugin undo
-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