tools/vim

Vim : macro with vim - replay, multiple times

seul chan 2018. 6. 14. 21:00

Macro basic

# start recording macro
q{key}

# end recording macro
q

# play macro
@{key}

replay macro several times

# Select all visual block and do macro
VG:normal @{key}

# Just repeat macro 15 times
15@{key}

# command line
:%normal @{key}