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.

Reply via email to