From e3d1467a0c4bb10effd012e87f53a8c93a17ee60 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 8 Jul 2018 21:04:06 +1200 Subject: Disable concealing when editing Vim help --- vim/after/ftplugin/help.vim | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 vim/after/ftplugin/help.vim (limited to 'vim/after') 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 -- cgit v1.2.3