Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Defining the settings for the vim help file

With opened vim help file the command

:set conceallevel=0

works fine and e.g. the "|" signs for the internal links are showed as expected, but unfortunately, it remains not permanent, i.e., jumping to another link hides the "|" signs again.

As I put this setting into my .vimrc as into my .gvimrc too to make it permanent, there is no effect at all, while other settings from my config files are applied properly.

So are there any local definitions for the vim help file?

Perhaps I didn't look for this deeply enough, but because I think it is from some importance for other people too, I've got the courage to ask this question here ;-)

I really appreciate any suggestions...

(Tested with VIM 7.4 from 2013 August 10 from the ubuntu repository)

like image 675
Andi Hafner Avatar asked Mar 19 '23 10:03

Andi Hafner


1 Answers

Yes, as with most filetypes, Vim has help-specific settings that override your generic settings.

You can use :verbose to see where an option was set:

:verbose set conceallevel?

The default ftplugin for help files is where conceallevel is set:

$VIMRUNTIME/ftplugin/help.vim

To override that setting, create ~/.vim/after/ftplugin/help.vim and put this line:

setlocal conceallevel=0
like image 145
romainl Avatar answered Apr 09 '23 21:04

romainl