Permalink
Browse files

Use xnoremap for visual mode mappings

  • Loading branch information...
1 parent 694be65 commit 32a5a29e9518e7f7b1ee5368eafd6adad3d53235 @suy suy committed Feb 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/AutoClose.vim
@@ -370,9 +370,9 @@ function! s:CreatePairsMaps()
let quoted_opener = s:quoteAndEscape(opener)
let quoted_closer = s:quoteAndEscape(closer)
- exec "vnoremap <buffer> <silent> ". b:AutoCloseSelectionWrapPrefix
+ exec "xnoremap <buffer> <silent> ". b:AutoCloseSelectionWrapPrefix
\ . opener . " <Esc>`>a" . closer . "<Esc>`<i" . opener . "<Esc>"
- exec "vnoremap <buffer> <silent> ". b:AutoCloseSelectionWrapPrefix
+ exec "xnoremap <buffer> <silent> ". b:AutoCloseSelectionWrapPrefix
\ . closer . " <Esc>`>a" . closer . "<Esc>`<i" . opener . "<Esc>"
if key == b:AutoClosePairs[key]
exec "inoremap <buffer> <silent> " . opener

0 comments on commit 32a5a29

Please sign in to comment.