This seems like a pretty sweet tip. It would be much appreciated if you
could post a fleshed-out version of this tip, along with some possible
use cases on the vim.org tips page.
Thanks!
Tom Purl
Yeah, thanks it works like this too:
bufdo !tar -vrf /path/to/archive.tar %:p
How do I avoid the
Press ENTER or type command to continue
prompt after each file is processed?
On 22/11/06, A.J.Mechelynck [EMAIL PROTECTED] wrote:
Eric Smith wrote:
I want to make a tar file that includes the full pathname.
When I go
:bufdo ! tar -vrf archive_with_full_path.tar %
The `%' does not expand the full path so I do not get the path
information into the tar file.
How could I best achieve what I want?
Try (untested)
bufdo exe '!tar -vrf /path/to/archive.tar' expand('%:p')
see :help expand()
Best regards,
Tony.
--
Eric Smith