Skip to content
Browse files

Merge pull request #2 from robmiller/visual-mappings

Bind to visual mode, not just operator-pending mode
  • Loading branch information...
2 parents 9dced7a + 1c3352b commit 6331b9f5b28be5e3b06f2e8c7b1d9823b9e93bad @robmiller committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugin/movar.vim
View
5 plugin/movar.vim
@@ -63,6 +63,11 @@ endfunction
augroup Movar
autocmd!
autocmd FileType php onoremap <buffer> av :<c-u>call SelectDollarVar()<CR>
+ autocmd FileType php vnoremap <buffer> av :<c-u>call SelectDollarVar()<CR>
+
autocmd FileType javascript,ruby onoremap <buffer> av :<c-u>call SelectBareVar()<CR>
+ autocmd FileType javascript,ruby vnoremap <buffer> av :<c-u>call SelectBareVar()<CR>
+
autocmd FileType php,ruby onoremap <buffer> iv :<c-u>call SelectInnerVar()<CR>
+ autocmd FileType php,ruby vnoremap <buffer> iv :<c-u>call SelectInnerVar()<CR>
augroup END

0 comments on commit 6331b9f

Please sign in to comment.
Something went wrong with that request. Please try again.