How to change VIM cursor shape while in different modes in Gnome Terminal

后端 未结 2 1609
孤街浪徒
孤街浪徒 2021-01-17 15:13

I would like to change VIM\'s (not gVIM\'s) cursor depending on what mode I am currently in. I would like:

  • Normal & Visual modes = block cursor
2条回答
  •  半阙折子戏
    2021-01-17 15:59

    For me, gnidmoos solution worked after changing the script script called gnome-terminal-cursor-shape.sh to:

    #!/bin/sh
    gconftool-2 --set "/apps/gnome-terminal/profiles/Default/cursor_shape" --type string "$1"
    

    (using the same lines in .vimrc)

    Ps. I'm running ubuntu 14.04, GNOME Terminal 3.6.2

    Cheers!

提交回复
热议问题