aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-11 10:50:20 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-11 10:50:20 +1200
commitd3f770582e3a3c7ba96ca0f546e1d11c8403aac1 (patch)
tree2088fea26a4fb92c2fca9a044c47da21bf848ebf
parent10c2caec1e97c3691a0722ad1d510fa781abe8aa (diff)
downloaddotfiles-d3f770582e3a3c7ba96ca0f546e1d11c8403aac1.tar.gz
Check for +conceal before setting 'conceallevel'
-rw-r--r--vim/after/ftplugin/help.vim2
1 files changed, 1 insertions, 1 deletions
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