lmi
[Top][All Lists]
Advanced

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

[lmi] zsh keybindings on remote redhat server [Was: Failed vim-mode .zsh


From: Greg Chicares
Subject: [lmi] zsh keybindings on remote redhat server [Was: Failed vim-mode .zshrc experiment]
Date: Wed, 12 Feb 2020 23:43:45 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 2019-10-25 02:17, Greg Chicares wrote:
[...]
> My ~/.zshrc, for reasons similarly lost in the mists of time, contains:
> 
> # These three seem to be set by default:
> # bindkey '\e[3~' delete-char      # Del
> # bindkey '\e[H' beginning-of-line # Home
> # bindkey '\e[F' end-of-line       # End
> 
> I think I might have needed those settings in the last century for cygwin,
> and then commented them out when they seemed to have become unnecessary.
> 
> Experimentally, I uncomment the bindings for {Home,End}, and now the
> anomaly reported earlier seems to have vanished, for viins mode.
Now I find that I need to uncomment the one for Del as well.
Otherwise, when SSHing from a corporate laptop into a redhat server,
pressing Del...
 - in viins mode: switches to vicmd mode
 - in vicmd mode: changes the case of the character under the cursor

It's helpful to know the vim movement keys {hjkl} when moving from a
real keyboard to a laptop where the normal arrow keys aren't located
where my fingers expect. And it's nice to know that I can always get
into vicmd mode and use 'x' to delete a character. But I really do
want the usual non-alphabetic keys to behave naturally, too.


reply via email to

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