check if C-r map exists before setting it

This commit is contained in:
yilisharcs 2025-04-27 15:43:01 -03:00
parent 65846025c1
commit 711fe37dd3

View file

@ -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