aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/after/ftplugin/help.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/vim/after/ftplugin/help.vim b/vim/after/ftplugin/help.vim
new file mode 100644
index 00000000..ad6b572c
--- /dev/null
+++ b/vim/after/ftplugin/help.vim
@@ -0,0 +1,21 @@
+" Extra configuration for 'help' filetypes
+if exists('b:did_ftplugin_after') || &compatible
+ finish
+endif
+if v:version < 700
+ finish
+endif
+if &filetype !=# 'help'
+ finish
+endif
+let b:did_ftplugin_after = 1
+let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|unlet b:did_ftplugin_after'
+
+" If the buffer is modifiable and writable, we're writing documentation, not
+" reading it; don't conceal characters
+if &modifiable && !&readonly
+ setlocal conceallevel=0
+ let b:undo_ftplugin = b:undo_ftplugin
+ \ . '|setlocal conceallevel'
+endif