Fix bogus spaces in maps
This commit is contained in:
parent
c4f9f159e6
commit
5bacc6f805
@ -117,12 +117,18 @@ nnoremap <silent> <Plug>(RepeatUndo) :<C-U>call repeat#wrap('u',v:count)<CR>
|
|||||||
nnoremap <silent> <Plug>(RepeatUndoLine) :<C-U>call repeat#wrap('U',v:count)<CR>
|
nnoremap <silent> <Plug>(RepeatUndoLine) :<C-U>call repeat#wrap('U',v:count)<CR>
|
||||||
nnoremap <silent> <Plug>(RepeatRedo) :<C-U>call repeat#wrap("\<Lt>C-R>",v:count)<CR>
|
nnoremap <silent> <Plug>(RepeatRedo) :<C-U>call repeat#wrap("\<Lt>C-R>",v:count)<CR>
|
||||||
|
|
||||||
if !hasmapto('<Plug>(RepeatDot)', 'n') | nmap . <Plug>(RepeatDot)| endif
|
if !hasmapto('<Plug>(RepeatDot)', 'n')
|
||||||
if !hasmapto('<Plug>(RepeatUndo)', 'n') | nmap u <Plug>(RepeatUndo)| endif
|
nmap . <Plug>(RepeatDot)
|
||||||
|
endif
|
||||||
|
if !hasmapto('<Plug>(RepeatUndo)', 'n')
|
||||||
|
nmap u <Plug>(RepeatUndo)
|
||||||
|
endif
|
||||||
if maparg('U','n') ==# '' && !hasmapto('<Plug>(RepeatUndoLine)', 'n')
|
if maparg('U','n') ==# '' && !hasmapto('<Plug>(RepeatUndoLine)', 'n')
|
||||||
nmap U <Plug>(RepeatUndoLine)
|
nmap U <Plug>(RepeatUndoLine)
|
||||||
endif
|
endif
|
||||||
if !hasmapto('<Plug>(RepeatRedo)', 'n') | nmap <C-R> <Plug>(RepeatRedo)| endif
|
if !hasmapto('<Plug>(RepeatRedo)', 'n')
|
||||||
|
nmap <C-R> <Plug>(RepeatRedo)
|
||||||
|
endif
|
||||||
|
|
||||||
augroup repeatPlugin
|
augroup repeatPlugin
|
||||||
autocmd!
|
autocmd!
|
||||||
|
Loading…
Reference in New Issue
Block a user