Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用病原体作为VIM插件管理器,果冻豆作为默认颜色方案,我想自己定义行号颜色,所以我hi CursorLineNr guifg=yellow在vimrc中设置,但是病原体会加载果冻豆颜色替换我的设置,如何覆盖它。
hi CursorLineNr guifg=yellow
如果您不想分叉和修改颜色方案,最好在颜色方案更改时安装它:
:autocmd ColorScheme * hi CursorLineNr guifg=yellow
您甚至可以g:colors_name为不同的配色方案添加条件并选择不同的自定义。
g:colors_name