定义vim帮助文件的设置 [英] Defining the settings for the vim help file

查看:67
本文介绍了定义vim帮助文件的设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

打开vim帮助文件后,命令

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.

当我将此设置放入.vimrc以及.gvimrc使其永久化时,也没有任何作用,而我的其他设置配置文件正确应用。

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.

那么vim帮助文件是否有本地定义?

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...

(从ubuntu存储库中使用2013年8月10日起的VIM 7.4进行了测试)

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

推荐答案

是的,与大多数文件类型一样,Vim具有 help 特定的设置,该设置将覆盖您的常规设置。

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

您可以使用:verbose 查看设置选项的位置:

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

:verbose set conceallevel?

帮助文件的默认ftplugin为隐藏级别已设置:

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

$VIMRUNTIME/ftplugin/help.vim

要覆盖该设置,请创建〜/ .vim / after / ftplugin / help.vim 并将此行:

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

setlocal conceallevel=0

这篇关于定义vim帮助文件的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆