repmo-vim
repmo-vim copied to clipboard
Also include k,j, h,l, w,b, W,B, e,E, ge,gE.
Came across this plugin while looking for a plugin to repeat motions from here: https://stackoverflow.com/a/26553473/4752883
Can the features from this plugin be included in this: https://github.com/vim-scripts/repeat-motion?
Easily, but you have to put mappings in your vimrc, see the README.
" :PutRepmoSelfMap k|j h|l w|b e|ge E|gE
noremap <expr> k repmo#SelfKey('k', 'j')|sunmap k
noremap <expr> j repmo#SelfKey('j', 'k')|sunmap j
noremap <expr> h repmo#SelfKey('h', 'l')|sunmap h
noremap <expr> l repmo#SelfKey('l', 'h')|sunmap l
noremap <expr> w repmo#SelfKey('w', 'b')|sunmap w
noremap <expr> b repmo#SelfKey('b', 'w')|sunmap b
noremap <expr> e repmo#SelfKey('e', 'ge')|sunmap e
noremap <expr> ge repmo#SelfKey('ge', 'e')|sunmap ge
noremap <expr> E repmo#SelfKey('E', 'gE')|sunmap E
noremap <expr> gE repmo#SelfKey('gE', 'E')|sunmap gE
(repetition keys are not defined here)