[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ability to change cursor shape in vim mode

From: Chet Ramey
Subject: Re: Ability to change cursor shape in vim mode
Date: Mon, 14 Nov 2016 15:48:15 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 11/14/16 3:33 AM, Sassan Haradji wrote:
> Hey,
> While I found the new vim-mode indicator very useful, I was wondering if it’s 
> possible to give the user the ability to change the cursor shape in different 
> modes (maybe. Vim users are used to the cursor shapes used in vim (block and 
> line shapes for normal and edit modes) so it’ll be way more convenient if it 
> behaves like vim.
> As many shells use readline, it’ll automatically improve the user experience 
> for vim mode users in many shells (python shell for example.)

Try doing this by putting the escape sequence to change the cursor shape
into the value of one of the vi mode strings.  Be sure to bracket them
with \1 and \2 so readline knows those characters don't take up any space.
That will gauge how feasible this is.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]