vim macro

record to register a

qa

stop recording

q

apply macro

@a