File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ function! s:select_a()
38
38
if start_column - 2 <= word_start ||
39
39
\ getline (start_line)[:start_column - 2 ] = ~# ' ^_*$'
40
40
call setpos (' .' , end_position)
41
+ let l: tildeop = &tildeop
42
+ set notildeop
41
43
normal ! l ~
44
+ let &tildeop = l: tildeop
42
45
endif
43
46
endif
44
47
Original file line number Diff line number Diff line change @@ -404,4 +404,13 @@ describe 'av'
404
404
normal dav
405
405
Expect getline (1 ) == ' foo bazQuux'
406
406
end
407
+ it ' selects leading small camels and swaps case even with tildeop'
408
+ set tildeop " Vim default is notildeop
409
+ put ! = ' fooBarQuux'
410
+ normal ! 0
411
+ normal dav
412
+ Expect getline (1 ) == ' barQuux'
413
+ Expect &tildeop == 1
414
+ set notildeop
415
+ end
407
416
end
You can’t perform that action at this time.
0 commit comments