Skip to content

When cancelling a command with an operator, always stay in normal mode #26

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

Open
vimeitor opened this issue Dec 8, 2017 · 1 comment
Labels

Comments

@vimeitor
Copy link

vimeitor commented Dec 8, 2017

Hello again :-)

Using map <leader><leader>f <Plug>(snipe-f) as keybinding
Pressing c<leader><leader>f<esc> should stay in normal mode instead of going in insert mode.

And if I'm not mistaken, if you go through with the jump, you undo, then you try to do the same jump with the same letter but you cancel, everything is deleted until the first occurrence of the letter. For example

"random piece of text"
c<leader><leader>fe
shows
"random piacs of tdxt"
You go through with d, so you end up with
"xt"
You undo. You press c<leader><leader>f<esc>
and you get
"ece of text"

@yangmillstheory
Copy link
Owner

yangmillstheory commented Dec 9, 2017

It's possible for Visual mode cancellation to place you into Normal mode. I'm not sure this is actually possible for Operator-pending mode when it places you in Insert mode - i.e. c. Thus, I'll hold off on making the change for Visual mode to avoid inconsistency.

"random piece of text"...

I can't reproduce this.

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

2 participants