Tests Blockwise Visual when there are TABs before the text. First test for undo working properly when executing commands from a register. Also test this in an empty buffer. STARTTEST :so tiny.vim G0"ay$k@au :new @auY:quit! GP /start here$ "by$jjlld /456$ jj"bP :/56$/,$-1w! test.out :qa! ENDTEST 123456 234567 345678 test text test tex start here some text test text test text OxjAykdd