Zsh Mailing List Archive
Messages sorted by:
Re: vi mode reset
On Fr, 09 Dez 2016, Oliver Kiddle wrote:
> Christian Brabandt wrote:
> > However, since the upgrade I noticed that my zsh resets vi mode, on
> > various occasions, but I cannot reproduce exactly when exactly this
> What exactly do you mean by "resets vi mode". Switches to command/normal
> mode without your having pressed escape, perhaps? Many key combinations
> send a sequence of characters starting with an escape so zsh may be
> mis-interpreting that.
It is reset to emacs mode I believe. I have to hit set -o vi again.
> > happens. I think this usually happens either if I am pasting something
> > into the terminal (using putty from Windows and pasting using
> > <shift><insert> keys) or running Vim.
> Sounds like possibly an effect of the bracketed paste feature. You can
> disable that with: unset zle_bracketed_paste
I'll try that, thanks. However I always thought, bracket paste mode is
> It'd be better to understand how it is coming to fail for you. Perhaps
> your terminal has a different bracketed paste mode. Or perhaps you've
> removed the key binding for it. Do you perhaps clear a range of key
> bindings in your .zshrc? What does this show?:
> bindkey -L |grep 200
> What do you see if you press Ctrl-V before pasting text?
> Do you perhaps have some other safe-paste or bracketed-paste plugin from
> elsewhere. Are you using something like oh-my-zsh or prezto?
I don't use any distribution.
Here is an example:
0 59928 chrisbra@debian ~ % bindkey -L |grep 200
bindkey "^X^[[200~" _start_quoted_paste
bindkey "^[[200~" _start_paste
# Here I pasted the string zsh using Ctrl-V:
0 59929 chrisbra@debian ~ % ^[[200~zshG
# Here I pasted the usual way hitting <shift><insert>, then pressing
# <esc> stops working:
1 59929 chrisbra@debian ~ % wget -c 'https://github.com/vim/vim/issues/1204'
--2016-12-09 14:14:10-- https://github.com/vim/vim/issues/1204
Resolving github.com (github.com)... 126.96.36.199, 188.8.131.52
2016-12-09 14:14:12 (284 KB/s) - ‘1204’ saved 
# Now hitting esc won't go back into command mode.
2 59933 chrisbra@debian ~ % set -o |grep "^vi"
# Looks like it is still on. Hm, that is strange. However when I press
# <esc> it won't go back into normal mode but keeps entering keys.
# Entering set -o vi fixes that.
Linux wird nie das meistinstallierte Betriebssystem sein.
Bedenken Sie nur, wie oft man Windows neu installieren muß.
Messages sorted by: