tpope / vim-repeat

repeat.vim: enable repeating supported plugin maps with "."
http://www.vim.org/scripts/script.php?script_id=2136
2.58k stars 81 forks source link

Is there a concrete way to replace . to other key? Documentation is unclear... #87

Closed AndresMpa closed 3 years ago

AndresMpa commented 3 years ago

I've been reading issues and I don't get at all how to change . mapping, . is really anoying, it's too far from other keys in my keyboard... Then README doesn't explain how to change that... Could it be explain there in a concrete way?

svermeulen commented 3 years ago

I think you can just add maps to the <plug> versions and then repeat-vim will not add the . mappings. Eg:

nmap a <Plug>(RepeatDot)
nmap b <Plug>(RepeatUndo)
nmap B <Plug>(RepeatUndoLine)
nmap c <Plug>(RepeatUndoLine)