From d3f770582e3a3c7ba96ca0f546e1d11c8403aac1 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 11 Jul 2018 10:50:20 +1200 Subject: Check for +conceal before setting 'conceallevel' --- vim/after/ftplugin/help.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/after/ftplugin/help.vim b/vim/after/ftplugin/help.vim index eb5cea64..e21a5259 100644 --- a/vim/after/ftplugin/help.vim +++ b/vim/after/ftplugin/help.vim @@ -5,7 +5,7 @@ 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 .= '|setlocal conceallevel<' endif -- cgit v1.2.3