Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual mode exits when selecting lines down with evil-escape-key-sequence 'jk' #79

Open
stevensona opened this issue Oct 2, 2017 · 3 comments
Labels

Comments

@stevensona
Copy link

stevensona commented Oct 2, 2017

With evil-escape-key-sequence set to "jk", in visual mode, I can't hold 'j' to select multiple lines because it exits visual mode. Highlighting lines up works as expected.

On spacemacs develop branch.

@stevensona
Copy link
Author

stevensona commented Oct 2, 2017

#61

add

(push 'visual evil-escape-excluded-states)

to exclude visual from evil-escape

thanks to @weaksauce on spacemacs gitter.

@fiveNinePlusR
Copy link

if you are only pressing j and not k this bug is probably still valid. I just put that in my config because i only really want jk or kj to get me out of insert mode and not from all the other ancillary modes.

@stevensona stevensona reopened this Oct 3, 2017
@syl20bnr syl20bnr added the bug label Jun 24, 2018
@illia-danko
Copy link

#61

add

(push 'visual evil-escape-excluded-states)

to exclude visual from evil-escape

thanks to @weaksauce on spacemacs gitter.

I've experienced an opposite issue using doom-emacs: after remapping evil-escape-key-sequence to 'fd' (useful to left-handed people) there isn't a straight way to force exiting the visual mode with the escape sequence. Have found that 'visual is in the evil-escape-excluded-states by default. So adding the following snippet resolves my issue:

(after! evil-escape
  (setq evil-escape-key-sequence "fd")
  ;; Allow to escape from the visual state as from insert.
  (delete 'visual evil-escape-excluded-states))
;;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants