Permalink
Browse files

Don't clobber existing U map

Closes #6.
  • Loading branch information...
1 parent 2914f11 commit d75a544b786710705f0db0d8d8fd66ca4a5a7239 @tpope committed May 2, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 autoload/repeat.vim
View
@@ -101,7 +101,9 @@ endfunction
nnoremap <silent> . :<C-U>call <SID>repeat(v:count)<CR>
nnoremap <silent> u :<C-U>call <SID>wrap('u',v:count)<CR>
-nnoremap <silent> U :<C-U>call <SID>wrap('U',v:count)<CR>
+if maparg('U','n') ==# ''
+ nnoremap <silent> U :<C-U>call <SID>wrap('U',v:count)<CR>
+endif
nnoremap <silent> <C-R> :<C-U>call <SID>wrap("\<Lt>C-R>",v:count)<CR>
augroup repeatPlugin

0 comments on commit d75a544

Please sign in to comment.