开发者

EasyMotion coloring in vim with Solarized theme?

开发者 https://www.devze.com 2023-03-08 03:34 出处:网络
I\'m using the Solarized theme for vim (which is amazing), but the color defaults for EasyMotion are, well, downright unreadable.

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 dark开发者_运维问答er 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.


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 and easymotion-custom-hl. These define whether or not to highlight the shaded text and how to hilight the shaded and target text.


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) :

" easymotion highlight colors
hi link EasyMotionTarget Search
hi link EasyMotionTarget2First Search
hi link EasyMotionTarget2Second Search
hi link EasyMotionShade Comment
0

精彩评论

暂无评论...
验证码 换一张
取 消