DEV Community

Discussion on: What's your favorite Vim trick?

Collapse
 
voyeg3r profile image
Sérgio Araújo

Using double quotes you can use a better notation to indicate keystrokes, something like:

let @a="\<esc>0yyp\<c-a>ww150\<c-a>"

In order to test the above macro paste this on the firest line and run
10@a

on this line I have 1 and more 150