mirror of
https://github.com/tpope/vim-repeat.git
synced 2026-09-10 07:16:26 -04:00
check if C-r map exists before setting it
This commit is contained in:
parent
65846025c1
commit
711fe37dd3
|
|
@ -143,7 +143,7 @@ endif
|
|||
if maparg('U','n') ==# '' && !hasmapto('<Plug>(RepeatUndoLine)', 'n')
|
||||
nmap U <Plug>(RepeatUndoLine)
|
||||
endif
|
||||
if !hasmapto('<Plug>(RepeatRedo)', 'n')
|
||||
if maparg('<C-R>','n') ==# '' && !hasmapto('<Plug>(RepeatRedo)', 'n')
|
||||
nmap <C-R> <Plug>(RepeatRedo)
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue