Vim Tips Wiki

Make tar of all files in vim buffer

Revision as of 06:25, July 13, 2012 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
1,619pages on
this wiki
Tip 1413 Printable Monobook Previous Next

created 2006 · complexity basic · author Eric Smith · version 5.7

The following command will make a tar file including path information of all files in the current Vim buffer. If you wish to omit paths, leave out the ':p'.

:silent bufdo !tar -rvf archive.tar %:p

I use it to copy projects (where all files are open in split screen), from one machine to another.


Zip version - zip all the files in your Vim session.

:silent bufdo !zip %

--- You probably want to use :mksession to save your window setup also?

Around Wikia's network

Random Wiki