two problems with terminator: vi and line spacing/cursor size

Jon LaBadie ubu at labadie.us
Mon May 8 15:13:48 UTC 2023


On Mon, May 08, 2023 at 09:39:29AM +0100, Chris Green wrote:
>On Mon, May 08, 2023 at 06:24:16AM +0200, M. Fioretti wrote:
>> Before answering the replies I got: whatever is happening here, it is
>> a combination of vi(m) and LOCAL terminals, because:
>>
>> - the problem I described happens when using vi which is "VIM - Vi
>>   IMproved 8.2" in a LOCAL terminal, also in xterm, not just Terminator
>> - I am writing this email in emacs inside mutt, and the arrow key works as it should
>> - if I ssh into a centos box and use vi, which on that box is "VIM - Vi
>> IMproved 7.4" the arrow key also works as it should
>>
>> Now, answering to C. Green first:
>>
>> > were you in insert mode or not?... or were you expecting the left
>> > arrow key to move the cursor left?
>>
>> I explicitly wrote that this happens in insert mode. Of course I was
>> expecting "the left arrow key to move the cursor left". Why should I
>> expect anything different from pressing a key with a left arrow on it?
>>
>Yes, OK, but that was why I asked what vi you were using.  Old vi
>don't recognised arrow keys in insert mode, they just insert the key
>sequence (which is what seems to be happening to you).
>
In "Old vi", rursor keys could be entered into the map! list to allow
their use in input mode.  The ! in map! specifies only in input mode.

Something like:

:map! \EOD \Ehi

I.e. in input mode, if you get Esc, O, D quickly together, map it to
Esc (out of input mode), h (back up one), i (back into input mode).

Kludgy but worked pretty well.

jl

-- 
Jon H. LaBadie                  ubu at labadie.us




More information about the ubuntu-users mailing list