use Vim's text-object API #2

Merged
merged 1 commit into from Apr 1, 2013
Jump to file or symbol
Failed to load files and symbols.
+5 −0
Split
View
@@ -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