diff --git a/autoload/repeat.vim b/autoload/repeat.vim index 0884dc6..bc31a77 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -117,12 +117,18 @@ nnoremap (RepeatUndo) :call repeat#wrap('u',v:count) nnoremap (RepeatUndoLine) :call repeat#wrap('U',v:count) nnoremap (RepeatRedo) :call repeat#wrap("\C-R>",v:count) -if !hasmapto('(RepeatDot)', 'n') | nmap . (RepeatDot)| endif -if !hasmapto('(RepeatUndo)', 'n') | nmap u (RepeatUndo)| endif +if !hasmapto('(RepeatDot)', 'n') + nmap . (RepeatDot) +endif +if !hasmapto('(RepeatUndo)', 'n') + nmap u (RepeatUndo) +endif if maparg('U','n') ==# '' && !hasmapto('(RepeatUndoLine)', 'n') nmap U (RepeatUndoLine) endif -if !hasmapto('(RepeatRedo)', 'n') | nmap (RepeatRedo)| endif +if !hasmapto('(RepeatRedo)', 'n') + nmap (RepeatRedo) +endif augroup repeatPlugin autocmd!