相关疑难解决方法(0)

插入模式下Vim CursorLine颜色更改

有一个改变光标颜色的好片段:

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
Run Code Online (Sandbox Code Playgroud)

我该怎么改变这个而不是光标,CursorLine会改变颜色,例如从深蓝色变为蓝色?

我的完整配置是https://bitbucket.org/JackLeo/home-configs/src/5b8faf340f87/.vimrc

vim colors line cursor

25
推荐指数
2
解决办法
1万
查看次数

标签 统计

colors ×1

cursor ×1

line ×1

vim ×1