Vim Tips Wiki

Edit a temporary copy of the current file

Revision as of 05:36, July 13, 2012 by JohnBot (Talk | contribs)

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

created 2003 · complexity basic · author mosh · version 6.0

Edit a copy of the current file as $TMP/file-$DATE by pressing zs using the following mapping.

:map zs :exe "sav $TMP/" . expand("%:t") . strftime("-%Y-%m-%d_%H%M%S")<CR>


Around Wikia's network

Random Wiki