Monday, 15 September 2014

vim: using a regular key as a modifier -



vim: using a regular key as a modifier -

i utilize <space> modifier, ctrl, alt or shift.

for example, hjkl keys jump 10 times instead of 1 when space pressed. like:

nnoremap <space-h> 10h nnoremap <space-j> 10j nnoremap <space-k> 10k nnoremap <space-l> 10l

this works:

nnoremap <space>j 10j

but need release <space> , press 1 time again repeat custom movement.

arpeggio vim plugin lets define keymappings of simultaneous keys other keys, e.g. j , k @ same time have same effect <esc>.

vim

No comments:

Post a Comment