aboutsummaryrefslogtreecommitdiff
path: root/autoload/subwords.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/subwords.vim')
-rw-r--r--autoload/subwords.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/subwords.vim b/autoload/subwords.vim
index eef8f8b..2c5c0bc 100644
--- a/autoload/subwords.vim
+++ b/autoload/subwords.vim
@@ -49,6 +49,11 @@ function! subwords#next(vis, forward)
let s:subword_nosave = 0
endfunction
+" Zero-match the next subword baundary for repeatable cin- and cin_ commands.
+function! subwords#visual_beginning(prefer_camel, around)
+ return subwords#visual(a:prefer_camel, a:around) . "oi v"
+endfunction
+
" Visually highlights a subword.
"
" If a:prefer_camel is set, then WordsLike_This will be interpreted with