I'm somewhat ashamed to admit, the main reason I chose neovim over vim was it's native feature of changing cursor shape in different modes. For example, it uses vertical-bar in insert mode, block-shape in normal mode and horizontal-bar in operator-pending mode.
Until recently, I didn't know there was a cursor shape for operator-pending mode. This was because I'm using vim-surround. So, I now don't get the horizontal-bar when pressing c or d. Again, I'm ashamed to admit that this little thing bothers me. I peeked around in the plugin, but honestly I understand very little of it. The best solution I came up with was to remap the cs
and ds
keymaps to some Leader
mappings, but that defeats the purpose of extending text objects.
So, I want to be able to see horizontal bar while I use default keymappings for vim-surround. How do I do that?
'guicursor'
, this also exists in vim and this since version 5, see:h new-5
. Just because it is 2018 and vim 5 was released 1998, this means for 20 years :-).:h nvim-features
,:h 'guicursor'
and:h tui-cursor-shape
in neovim mention this. I took thegui
in'guicursor'
literally. However, I use mainly macvim gui. On the command line I never missed it. IMHOI'm somewhat ashamed to admit
feels right to me (LOL). I am still not convinced to make the switch. What I feel ashamed about is: I want to have scroll bars in my gui window. That is the reason why I still use macvim and not github.com/qvacua/vimr#vimr--neovim-refined which otherwise seems to be a decent gui whereCMD-X/C/V
work.