Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
ZLE Vi-mode: visual mode selection doesn't match the characters highlighted
- X-seq: zsh-users 24346
- From: Doron Behar <doron.behar@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: ZLE Vi-mode: visual mode selection doesn't match the characters highlighted
- Date: Sat, 12 Oct 2019 18:06:11 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=Kc1oA/B61qJ9WC9vl34Cx7kLoQ1emPZMmxf+u+kqwKE=; b=FfCxhoczUYA3WM4gHocB0ngwly49HuHU9Pn85qGPkqbKHxl0DJbiSiDxmnb1f9drfn X6qLQzXNIXx8XOH391vA1294J6BFShoHK7LLArlMMG3VmiLwygu0t24wkq8c6q9pLb/q HACwWfod5vFyBrdnMBs3ynU93HO1iZ8Zye9q0FyaBGfJ/rmGGRdfe/TRbutbi770KIf5 MwLwWBefCWMtVx9oDt2Asdg7LoAKiyrBK8v3OMVpo3IHadeCOGRZiT1iLToTbtyyKLIR 8MyqOqONn+hmOCZfSlrHMwULGoaC9f4qySgH03Fwy3sXsBHWteXu0JD+nIk43zSDBRlU RH4w==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hey all,
I'm having a small inconvenience with the way characters are highlighted
in visual mode.
Say my $BUFFER has the following text, current $KEYMAP is "vicmd", and
the cursor is located where ^ is:
ZSH is the best shell
^
If I press `v`, and then `F<space>`, the cursor is located as expected
here:
ZSH is the best shell
^
----- (selected characters)
Naturally, the selection now includes all characters from `t` to the
space (inclusive), as marked with the hyphens.
The problem is, that only the 3 characters ("bes") are highlighted so
it's not clear what characters exactly are selected.
In comparison, when moving _forward_ in visual mode, the characters
highlighted include all letters selected.
This behaviour is not like in Vim (with it's default settings) and is
confusing IMO. My expectation is that every character selected will be
highlighted, no matter whether the cursor is at the start or the end of
the selection.
Is there a way to tweak this behavior?
Doron.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author