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

Don't use noremap or vnoremap #1

Closed
dlee opened this issue Apr 12, 2010 · 5 comments
Closed

Don't use noremap or vnoremap #1

dlee opened this issue Apr 12, 2010 · 5 comments

Comments

@dlee
Copy link

dlee commented Apr 12, 2010

noremap and vnoremap also map keystrokes in select mode, which is not the desired behavior. Instead, you should use onoremap, xnoremap, and nnoremap.

@kana
Copy link
Owner

kana commented Apr 12, 2010

You should describe why it is not desired (though I know the reason).

@dlee
Copy link
Author

dlee commented Apr 12, 2010

It's not desirable to map keystrokes in select mode because select mode is meant to overwrite the selection with text. If there are mappings, then text is not inserted.

@dlee
Copy link
Author

dlee commented Apr 12, 2010

BTW, I naively tried to change all occurrences of "vnoremap" to "xnoremap", but that didn't help.

@kana
Copy link
Owner

kana commented Apr 13, 2010

Okay, I'll fix it later.

@kana
Copy link
Owner

kana commented Apr 19, 2010

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

No branches or pull requests

2 participants