为什么vim在选项卡的位置画下划线以及如何避免这种情况? [英] Why is vim drawing underlines on the place of tabs and how to avoid this?

查看:48
本文介绍了为什么vim在选项卡的位置画下划线以及如何避免这种情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有任何特定的规律,我的 vim 在选项卡的位置显示下划线(见下文).

Without any specific regularity my vim displays underlines on the place of tabs (see below).

有时文本也会发生这种情况:我输入并带有下划线.

Sometimes it also happens to the text: I type and it's underlined.

可能是什么原因?

推荐答案

这可能是因为您正在编辑一个 html 文件并且下划线附近的文本位于 标签.

This is likely due to the fact that you are editing an html file and the text near the underline is inside of an <a> tag.

要禁用此功能,您可以将 let html_no_rendering=1 添加到您的 ~/.vimrc.但是,此设置也会禁用 html 文件的粗体和斜体样式.

To disable this you can add let html_no_rendering=1 to your ~/.vimrc. This setting will, however, also disable bold and italic styling for html files.

如果您只想禁用下划线,请参阅 :help html.vim.在那里,它会告诉您需要重新定义哪些高亮组而不需要 underline.

If you wish to only disable the underlining, see :help html.vim. There it gives you instructions on what highlight groups you need to redefine without underline.

这篇关于为什么vim在选项卡的位置画下划线以及如何避免这种情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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