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}


'tools > vim' 카테고리의 다른 글

Eliminating vim ESC key delay  (0) 2018.10.14
vimdiff usage  (0) 2018.06.26
Vim : ctrlp.vim open with split buffer (and other ctrlp command)  (0) 2018.05.17
Vim : using fzf in vim - fzf.vim  (0) 2018.05.16
Vim switcing case of characters  (0) 2018.03.05