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

Non-recursive remapping #408

Closed
johnfn opened this issue Jul 8, 2016 · 0 comments
Closed

Non-recursive remapping #408

johnfn opened this issue Jul 8, 2016 · 0 comments
Labels
Milestone

Comments

@johnfn
Copy link
Member

johnfn commented Jul 8, 2016

Our remapping is currently recursive mapping, done in vim with :map. For instance, if you map j to jj, then VSCodeVim will go into an infinite loop and die when you press j.

More generally useful is nonrecursive mapping, done in vim with :noremap. If you nonrecursively map j to jj, then pressing j just acts as if you had pressed j twice instead.

Non-recursive mapping is actually not hard at all to do; I suspect it will be less than 20 lines of code. I only marked it as medium because ya gotta know where those lines of code go.

@johnfn johnfn added the size/M label Jul 8, 2016
@johnfn johnfn added this to the v0.2 milestone Jul 8, 2016
studio315b pushed a commit to studio315b/Vim that referenced this issue Aug 11, 2016
@johnfn johnfn closed this as completed Aug 29, 2016
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

1 participant