Vim 中的 EasyMotion 着色与 Solarized 主题?
我正在使用 vim 的 Solarized 主题(这太棒了),但颜色默认为 EasyMotion 是完全不可读的。
当我激活 EasyMotion 时,前导字母清晰可见(亮红色,带有日光暗色),但它们键入的单词与背景几乎没有任何色调差异(深蓝色与稍深的蓝色背景)。
我怎样才能改变它以使其更具可读性?
解决方案:像这样编辑你的 .vimrc 文件:
" change the default EasyMotion shading to something more readable with Solarized
hi link EasyMotionTarget ErrorMsg
hi link EasyMotionShade Comment
插件文档中的第 4.5 节。
I'm using the Solarized theme for vim (which is amazing), but the color defaults for EasyMotion are, well, downright unreadable.
When I activate EasyMotion, the leader letters are clearly visible (bright red, with Solarized Dark), but the words they key to are barely a shade different from the background (dark blue against slightly darker blue background).
How can I change this to be more readable?
SOLUTION: Edit your .vimrc file like so:
" change the default EasyMotion shading to something more readable with Solarized
hi link EasyMotionTarget ErrorMsg
hi link EasyMotionShade Comment
A la section 4.5 in the docs for the plugin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
EasyMotion 的作者就 EasyMotion 的功能编写了出色的文档。对我来说最突出的帮助标签是
EasyMotion_do_shade
和easymotion-custom-hl
。这些定义是否突出显示阴影文本以及如何突出显示阴影文本和目标文本。The author of EasyMotion has written excellent documentation on what is possible with EasyMotion. The helptags that stand out to me are
EasyMotion_do_shade
andeasymotion-custom-hl
. These define whether or not to highlight the shaded text and how to hilight the shaded and target text.我倾向于使用与搜索时相同的突出显示。
还有两个可用的设置,参考源代码(https://github.com/Lokaltog/vim-easymotion/blob/master/t/easymotion_spec.vim#L507):
I tend to use the same highlighting as when searching.
There are also two more settings available, refering to the source code (https://github.com/Lokaltog/vim-easymotion/blob/master/t/easymotion_spec.vim#L507) :