Re: tar all files in buffer preserving path
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 >
Re: tar all files in buffer preserving path
Eric Smith wrote: 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? use ":set nomore" before the bufdo command, and ":set more" if you want to restore normal behaviour after it; or else use ":silent bufdo (etc.)". see :help 'more' :help 'silent' Best regards, Tony.
Re: tar all files in buffer preserving path
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
Re: tar all files in buffer preserving path
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.
tar all files in buffer preserving path
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? -- Eric Smith