You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You record a macro q that copies some text and pastes it. You repeat said macro n times with n@q. The macro is applied n times, but also the paste operation in the first macro execution is repeated n times.
Steps to reproduce:
Open a buffer with a word per line, like this:
foo
bar
banana
apple
orange
In Command Mode, place your cursor at the beginning of the file.
Record this macro:
qq (record on q)
viw (select the word, foo in this case)
y$p (copy and paste at the end of the line
j (down one line)
0 (go to the beginning of the line)
q (stop recording)
You should have:
foofoo
bar
banana
apple
orange
with your cursor at the beginning of the second line, in command mode.
5. Replay with 3@q
Problem:
You record a macro
q
that copies some text and pastes it. You repeat said macro n times withn@q
. The macro is appliedn
times, but also the paste operation in the first macro execution is repeatedn
times.Steps to reproduce:
with your cursor at the beginning of the second line, in command mode.
5. Replay with
3@q
Expected result
Actual result
bar
is pasted 3 times.Version and OS
Sublime Text 3.2.2, Build 3211
Vintage mode enabled
MacOS High Sierra 10.13.6
The text was updated successfully, but these errors were encountered: