Vim 如何修改 insert 和 nomal 光标样式
作者:互联网
spf-13自带的光标显示样式有点不好区分当前时什么model
在.vimrc
中添加
"Mode Settings
let &t_SI.="\e[5 q" "SI = INSERT mode
let &t_SR.="\e[4 q" "SR = REPLACE mode
let &t_EI.="\e[1 q" "EI = NORMAL mode (ELSE)
"Cursor settings:
" 1 -> blinking block
" 2 -> solid block
" 3 -> blinking underscore
" 4 -> solid underscore
" 5 -> blinking vertical bar
" 6 -> solid vertical bar
"let &t_SI = "\<Esc>]50;CursorShape=1\x7"
"let &t_SR = "\<Esc>]50;CursorShape=2\x7"
"let &t_EI = "\<Esc>]50;CursorShape=0\x7"
即可
标签:insert,EI,solid,CursorShape,Vim,let,blinking,nomal,x7 来源: https://blog.csdn.net/mkosto/article/details/100700454