Edit a temporary copy of the current file
From Vim Tips Wiki
(Redirected from VimTip567)
Tip 567 Previous Next Created: September 30, 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>
