有一个很好的片段可以改变光标颜色:
if &term =~ "xterm\\|rxvt"
" use an orange cursor in insert mode
let &t_SI = "\<Esc>]12;orange\x7"
" use a red cursor otherwise
let &t_EI = "\<Esc>]12;red\x7"
silent !echo -ne "\033]12;red\007"
" reset cursor when vim exits
autocmd VimLeave * silent !echo -ne "\033]112\007"
" use \003]12;gray\007 for gnome-terminal
endif
我应该如何改变这一点,而不是光标,CursorLine 会改变颜色,例如从深蓝色变为蓝色?
我的完整配置是https://bitbucket.org/JackLeo/home-configs/src/5b8faf340f87/.vimrc