Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode
On Jun 23, 1:30am, Filipe Silva wrote:
}
} Having an ESCKEYTIMEOUT would be awesome. Setting KEYTIMEOUT to anything
} above 5 is quite noticeable and laggy when I want to return to normal mode.
} KEYTIMEOUT=1 is snappy, but then I lose out on the surround widget and
} whatnot because I can't type `ys` fast enough.
Try this:
set-keytimeout() {
case $KEYMAP in
(vicmd) KEYTIMEOUT=5;;
(*) KEYTIMEOUT=1;;
esac
}
zle -N zle-keymap-select set-keytimeout
zle -N zle-line-init set-keytimeout
That should give you a short timeout when switching from insert mode to
what you call "normal mode" (command mode), and a longer one when you
are in command mode. Sadly, for reasons already noted, it won't speed
up using ESC in command mode for deactivate-region.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author