Hi,

Possibly a trivial question, yet I searched some, read help some and
couldn't find a quick answer.
I actually have two sub questions:

1. say I want to perform an action on all modified buffers. Like
performing compress or just echo their name. how is it done?
I read about bufdo and assume the answer lies in that direction.

2. More complex. Say I want to execute a shell (bash) command on all
buffers. For the buffers that the shell command succeeds (i.e. returns
0) perform some action. This can be useful for example to compress all
files larger than a given size, checking in all checked-out source
files  at the end of editing session etc.
what I had in mind is something along the lines of:
:silent bufdo !if test_cmd % > /dev/null ; then execute_desired_cmd
% ; fi

Haven't tried it yet and I have to go offline but I'm guessing it
won't work.

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

Reply via email to