From d75a544b786710705f0db0d8d8fd66ca4a5a7239 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 2 May 2012 19:13:33 -0400 Subject: [PATCH] Don't clobber existing U map Closes #6. --- autoload/repeat.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/repeat.vim b/autoload/repeat.vim index 6b0c763..dfc9899 100644 --- a/autoload/repeat.vim +++ b/autoload/repeat.vim @@ -101,7 +101,9 @@ endfunction nnoremap . :call repeat(v:count) nnoremap u :call wrap('u',v:count) -nnoremap U :call wrap('U',v:count) +if maparg('U','n') ==# '' + nnoremap U :call wrap('U',v:count) +endif nnoremap :call wrap("\C-R>",v:count) augroup repeatPlugin