尝试修改vim光标的思路

尝试修改vim光标,失败

想让vim的光标在不同模式下显示不同样式

尝试了很多方法,但是没有作用


" Set cursor shape and color
if &term =~ "xterm"
    " INSERT mode
    let &t_SI = "\[6 q" . "\]12;blue\x7"
    " REPLACE mode
    let &t_SR = "\[3 q" . "\]12;black\x7"
    " NORMAL mode
    let &t_EI = "\[2 q" . "\]12;green\x7"
endif
" 1 -> blinking block  闪烁的方块
" 2 -> solid block  不闪烁的方块
" 3 -> blinking underscore  闪烁的下划线
" 4 -> solid underscore  不闪烁的下划线
" 5 -> blinking vertical bar  闪烁的竖线
" 6 -> solid vertical bar  不闪烁的竖线

参考文章如下

  • Vim 配置光标形状和颜色
  • Change cursor shape in different teminal
  • Cursor color in xterm
  • Cursor styles

你可能感兴趣的:(软件安装配置,vim,编辑器,terminal,shell,termux)