@@ -556,6 +556,7 @@ func Test_visual_increment_26()
556556 exec " norm! \<C-V> $\<C-A> "
557557 call assert_equal ([" 0b11111111111111111111111111111111" ], getline (1 , ' $' ))
558558 call assert_equal ([0 , 1 , 1 , 0 ], getpos (' .' ))
559+ set nrformats -= alpha
559560endfunc
560561
561562" 27) increment with 'rightreft', if supported
@@ -575,4 +576,25 @@ func Test_visual_increment_27()
575576 endif
576577endfunc
577578
579+ " 28) block-wise increment and dot-repeat
580+ " Text:
581+ " 1 23
582+ " 4 56
583+ "
584+ " Expected:
585+ " 1) f2 Ctrl-V jl <ctrl-a>, repeat twice afterwards with .
586+ " 1 26
587+ " 4 59
588+ "
589+ " Try with and without indent.
590+ func Test_visual_increment_28 ()
591+ call setline (1 , [" 1 23" , " 4 56" ])
592+ exec " norm! ggf2\<C-V> jl\<C-A> .."
593+ call assert_equal ([" 1 26" , " 4 59" ], getline (1 , 2 ))
594+
595+ call setline (1 , [" 1 23" , " 4 56" ])
596+ exec " norm! ggf2\<C-V> jl\<C-A> .."
597+ call assert_equal ([" 1 26" , " 4 59" ], getline (1 , 2 ))
598+ endfunc
599+
578600" vim: tabstop = 2 shiftwidth = 2 expandtab
0 commit comments