【发布时间】:2011-11-28 16:43:12
【问题描述】:
有很好的sn-p来改变光标颜色:
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
【问题讨论】:
-
我喜欢带有注释“使用该死的 hjkl 键”的箭头键的映射。
-
我在这里是乱写 \
还是 ^V'ESC' 的可视化?当我将上面的文本复制粘贴到我的 .vimrc 中时,它什么也不做(是的,它声称是一个 xterm ......它是 Linux 机器上的一个腻子会话)
标签: vim colors line text-cursor