如何在插入模式下将vim光标更改为垂直线,并在正常模式下将block更改为iterm2。mac osx
我已经尝试了一些其他配置,我发现网上说它可以解决它,但他们都没有工作。我已经试过了,来自Vertical vim cursor in command mode
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
let &t_SI = "\<Esc>]50;CursorShape=1\x7"我也在这个网站https://hamberg.no/erlend/posts/2014-03-09-change-vim-cursor-in-iterm.html上尝试过这个
if $TERM_PROGRAM =~ "iTerm"
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
endif似乎什么都不起作用,光标在插入模式和正常模式下仍然是一个块。还有什么我可以试一试的吗?
发布于 2019-01-29 05:23:52
在this guide中,您需要知道的就是这些。
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"如果您使用tmux
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
let &t_SR = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=2\x7\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"https://stackoverflow.com/questions/54409248
复制相似问题