I appreciate the recommendations, but my workflow is pretty much set
in stone for complex reasons.  

Thanks again!

Tom Purl

On Tue, Oct 03, 2006 at 11:23:38AM +0200, A.J.Mechelynck wrote:
> Tom Purl wrote:
> >I'm trying to execute a series of Vim commands on multiple files.  Here's
> >the workflow:
> >
> >1. Open a file using gvim
> >2. Execute a named macro (that was recorded using the `q + a` command)
> >3. Save and close my file (which forces me to close gvim in this
> >example).
> >4. Repeat on the next file without having to re-record my macro.
> >
> >This works for me with vim, but for some reason, when I re-open gvim, it
> >forgets my "@ macro".  What setting can I change to fix this?
> >
> >Thanks in advance!
> >
> >Tom Purl
> >
> >
> 
> 3. You don't have to close Vim for that.
> 
> Save your file with ":w" then edit the next file with ":e file2", which 
> implicitly closes your first file; or replace your file buffer by a 
> [NoFile] buffer by means of ":enew".
> 
> If you started Vim with several files as an argument list (e.g., "vim 
> *.[ch]" to edit all .c and .h files) or if you set the argument list 
> afterwards (":args *.htm *.html") you can simply go from one file to the 
> next using ":next".
> 
> What you registered using qa and replay using xa is in register a. The 
> ":registers" command should show it to you even after closing and 
> restarting Vim.
> 
> 
> Best regards,
> Tony.

Reply via email to