Fandom

Vim Tips Wiki

Edit a temporary copy of the current file

Redirected from VimTip567

1,624pages on
this wiki
Add New Page
Talk0 Share
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>

CommentsEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.