[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ability to change cursor shape in vim mode
From: |
Sassan Haradji |
Subject: |
Re: Ability to change cursor shape in vim mode |
Date: |
Tue, 15 Nov 2016 00:48:05 +0330 |
Oh thanks, it worked in bash nicely, didn’t know these strings are
configurable. Though I wonder why it’s not working in python, I have to follow
that with python community.
> On Aban 25, 1395 AP, at 00:18, Chet Ramey <chet.ramey@case.edu> wrote:
>
> 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.
>
> Chet
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/