diff options
Diffstat (limited to 'vim/after/ftplugin/help.vim')
-rw-r--r-- | vim/after/ftplugin/help.vim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vim/after/ftplugin/help.vim b/vim/after/ftplugin/help.vim index 3d9ad072..e21a5259 100644 --- a/vim/after/ftplugin/help.vim +++ b/vim/after/ftplugin/help.vim @@ -1,12 +1,11 @@ " Extra configuration for Vim help files -if &filetype != 'help' || &compatible || v:version < 700 +if &filetype !=# 'help' || v:version < 700 finish endif " If the buffer is modifiable and writable, we're writing documentation, not " reading it; don't conceal characters -if &modifiable && !&readonly +if has('conceal') && &modifiable && !&readonly setlocal conceallevel=0 - let b:undo_ftplugin = b:undo_ftplugin - \ . '|setlocal conceallevel' + let b:undo_ftplugin .= '|setlocal conceallevel<' endif |