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

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-09-02
  • 2021-12-08
猜你喜欢
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
相关资源
相似解决方案