From 88e7d7e5c35fd1e7eb6b63cc895a7e426bbf04c1 Mon Sep 17 00:00:00 2001 From: Konfekt Date: Fri, 20 Feb 2015 21:28:28 +0100 Subject: [PATCH] remove trailing spaces in remaps Vim interprets `nmap ` as `nmap `. Here we do not want this and put `|` directly after ``. --- autoload/repeat.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/repeat.vim b/autoload/repeat.vim index cd305a7..142f1b8 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -117,12 +117,12 @@ 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!