Wikia

Vim Tips Wiki

Quick mapping for backing up the file

Talk0
1,613pages on
this wiki
Revision as of 05:45, July 13, 2012 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tip 725 Printable Monobook Previous Next

created 2004 · complexity basic · author Devin Weaver · version 6.0


Add this simple mapping into your vimrc to make a quick way to backup your document by typing \b in normal mode.

" For safe measures lets make a quick backup mapping.
nnoremap <Leader>b :let x=&backup<Bar>set backup<Bar>write<Bar>let &backup=x<Bar>unlet x<Cr>

CommentsEdit

Around Wikia's network

Random Wiki