Thursday, August 20, 2009

Re: Applying 4 commands repetetively

On Thu, Aug 20, 2009 at 3:38 PM, drlatex<n_dattani@hotmail.com> wrote:
>
> I want to apply the same 4 commands to about 500 different files, and since
> its the same commands in the same order each time, I don't want to
> repetetively type the commands over and over again.
>
> I want to do:
>
> vi 1*
>
> dd
> :set local noswapfile undolevels=-1
> :%join!
> :n
>
> dd
> :set local noswapfile undolevels=-1
> :%join!
> :n
>
> dd
> :set local noswapfile undolevels=-1
> :%join!
> :n
>
> ....
>
> over and over again until there are no longer any more files.
>
> Is this possible in vim ??
>
> Thanks in advance.

Watch this video; sounsd like almost exactly what you want.

http://vimeo.com/4456458

(Love the screencasts by the way)

Thanks,
Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment