改变Vim在iTerm2中的光标

vim ~/.vimrc

添加

" Change cursor shape between insert and normal mode in iTerm2.app
if $TERM_PROGRAM =~ "iTerm"
let &t_SI = "\<Esc>]50;CursorShape=1\x7" " Vertical bar in insert mode
let &t_EI = "\<Esc>]50;CursorShape=0\x7" " Block in normal mode
endif

vim在item2中的insert的光标会变为细光标。

出处:https://hamberg.no/erlend/posts/2014-03-09-change-vim-cursor-in-iterm.html

上一篇:Linux下安装Sublime Text 3 及使用快捷方式


下一篇:Android的Context Manager(服务管理器)源码剖析-android学习之旅(99)