From 61ab140a20917349876581872db4a369c18a0d1f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 16 Aug 2018 22:15:25 +1200 Subject: Work around buggy old Vim 'help' ftplugin undo --- vim/after/ftplugin/help.vim | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3