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

Turbo navigation #4

Open
jooize opened this issue Mar 23, 2016 · 4 comments
Open

Turbo navigation #4

jooize opened this issue Mar 23, 2016 · 4 comments

Comments

@jooize
Copy link
Owner

jooize commented Mar 23, 2016

Turbo navigation (HNEI=5*hjkl) was removed in c057ed0. I felt it didn't make sense as default mappings in Vim, and I would rather free up the keys for custom uses.

I considered adding an option, but decided not to because I didn't want to commit to having it in forever. Please write any arguments for and against.

You can add the following to your .vimrc to use turbo navigation again.

" Turbo navigation (Colemak) {{{
    " Works with counts, see ":help complex-repeat"
    nnoremap <silent> H @='5h'<CR>|xnoremap <silent> H @='5h'<CR>|onoremap <silent> H @='5h'<CR>|
    nnoremap <silent> N @='5gj'<CR>|xnoremap <silent> N @='5gj'<CR>|onoremap <silent> N @='5gj'<CR>|
    nnoremap <silent> E @='5gk'<CR>|xnoremap <silent> E @='5gk'<CR>|onoremap <silent> E @='5gk'<CR>|
    nnoremap <silent> I @='5l'<CR>|xnoremap <silent> I @='5l'<CR>|onoremap <silent> I @='5l'<CR>|
" }}}

I found myself abusing turbo navigation instead of learning to move using long-term more useful ways, but that doesn't feel like a strong argument against the feature.

@jamischarles
Copy link

I do use this a lot (up and down mainly). Thanks for showing how to add it back in here.

@jamischarles
Copy link

If you're going to keep it out, I'd suggest adding this snippet to the readme :)

@ghost
Copy link

ghost commented Apr 30, 2016

I personally used the turbo navigation a lot, although I also agree with adding a "common extras" section to the readme that points this out.

@jooize
Copy link
Owner Author

jooize commented May 6, 2016

Thanks for your feedback!

Added it to the readme in 4d35927.

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