5

I'm used to working on GVim, but I want to make most of vim+tmux too. Therefore I have decided to switch to vim. But in vim the cursor style does not change depending on the mode.

I use zsh and gnome terminal.

I have tried this answer: How to make cursor change from thin line to block based on normal or insert mode in Console Vim on 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

but it changes the cursor globally.

I have also tried this plugin, but it hasn't worked either. (How can I check if the plugin is working?)

Artur Meinild
  • 31,035
Natjo
  • 339