diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-16 22:15:25 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-16 22:15:25 +1200 |
commit | 61ab140a20917349876581872db4a369c18a0d1f (patch) | |
tree | a6b3c25df743f609e29795dc1bbcb1268c3bea29 /vim/after/ftplugin/help.vim | |
parent | Don't set vint compiler for commandline windows (diff) | |
download | dotfiles-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.vim | 6 |
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 |