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

Add mapping feature #84

Closed backdround closed 3 years ago

backdround commented 4 years ago

I have a remapped 'u' key, so i tried to map undo keys to another by #58:

if empty(mapcheck("<Plug>(RepeatUndo)"))
  nnoremap <Plug>(RepeatUndo) u
endif

It works, but sometimes vim reset my 'u' key to undo. And I dont know why

Here i divided into two files and add option to disable default mappings

marcoaaguiar commented 3 years ago

Merging this would be appreciated!

tpope commented 3 years ago

I merged another PR that solves this with hasmapto().