Vim禁用SpecialKey突出显示

时间:2015-06-01 23:53:38

标签: vim

我使用In [28]: isinstance(writer, _csv.writer) --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-28-0af1f54bd092> in <module>() ----> 1 isinstance(writer, _csv.writer) NameError: name '_csv' is not defined In [29]: isinstance(writer, csv._csv.writer) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-29-4e8e62254caf> in <module>() ----> 1 isinstance(writer, csv._csv.writer) AttributeError: 'module' object has no attribute '_csv 来显示制表符缩进,并巧妙地将颜色设置为略微浅于背景。但是,CursorLine似乎以白色突出显示这些,这是不需要的。我该怎么做才能使颜色不突出,但保持不变?

enter image description here

2 个答案:

答案 0 :(得分:1)

不幸的是,你无能为力。如果前者未定义,Vim将使用CursorLineNormal的前景色。它目前没有&#34;混合&#34; SpecialKeyCursorLine的颜色定义。您可以建议在vim_dev mailing list上更改此行为。

答案 1 :(得分:0)

我找到了一个解决方案 here 并且对我有用

:highlight MyTabSpace guifg=darkgrey ctermfg=darkgrey
:match MyTabSpace /\t\| /