(adjust previous/next navigation + minor manual clean) |
(Change <tt> to <code>, perhaps also minor tweak.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{TipImported |
{{TipImported |
||
|id=725 |
|id=725 |
||
− | |previous= |
+ | |previous=719 |
|next=727 |
|next=727 |
||
|created=2004 |
|created=2004 |
||
Line 11: | Line 11: | ||
|category2= |
|category2= |
||
}} |
}} |
||
− | Add this simple mapping into your vimrc to make a quick way to backup your document by typing |
+ | Add this simple mapping into your vimrc to make a quick way to backup your document by typing <code>\b</code> in normal mode. |
− | |||
<pre> |
<pre> |
||
" For safe measures lets make a quick backup mapping. |
" 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> |
|
</pre> |
</pre> |
||
Latest revision as of 05:45, 13 July 2012
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>