改變Vim在iTerm2中的光標

vim ~/.vimrchtml

添加vim

" 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
endifapp

vim在item2中的insert的光標會變爲細光標。post

 

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

相關文章
相關標籤/搜索