Skip to content

Turbo navigation #4

@jooize

Description

@jooize

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions