Hacker News new | ask | show | jobs
by olalonde 3979 days ago
It's possible to run a macro on a list of files? I usually just open the files one by one and @@:wq (oops)
1 comments

Yes, it's quite possible:

  :args *.cpp  " or any other list of files
  :set autowrite
  :argdo normal @@
  :wq