Skip to main content

#Vim - How to repeat jobs with recording keys?

How to repeat jobs with vim 

vim *.js

# start recording to register x
qx

// do stuff which has to be recorded

# stop recording
q

# playback to see if it works correctly
@x

# do stuff previously recorded 10 times
10@x