我习惯使用g
vim,但我想使用
vim tmux的好处.因此我想改为vim.但是在vim中,光标样式不会改变,这取决于我是哪种模式,这是gvim的一个有用特性.我使用zsh(oh-my-zsh)和gnome-terminal下面.
if has("autocmd")
au InsertEnter * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
au InsertLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"
au VimLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
endif
但是这会改变游标全局.绝对是我不想要的东西
最佳答案 可能,你需要
wincent/terminus vim插件:
In insert mode, the cursor shape changes to a thin vertical bar. In replace mode, it changes to an underline. On returning to normal mode, it reverts to the standard “block” shape. Configuration options are provided to select among the different shapes.