aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index 5ecd7b3..44d5d78 100644
--- a/vimrc
+++ b/vimrc
@@ -321,10 +321,10 @@ function Textobj_regex(inner, operator)
let objcmd = "normal! ".a:operator.objlength." "
exe objcmd
if a:operator == 'c'
- normal l
+ normal! l
startinsert
elseif a:operator == 'v'
- normal h
+ normal! h
endif
endfunction
onoremap <silent>a/ <Esc>:call Textobj_regex(0, v:operator)<CR>