Tip #807: Backing up and commenting .vimrc
tip karma |
Rating 0/9, Viewed by 1009
|
created: |
|
October 22, 2004 4:28 |
|
complexity: |
|
basic |
author: |
|
zzapper |
|
as of Vim: |
|
5.7 |
Hi,
1) BACKING UP .VIMRC :You can always easily reinstall VIM however the loss of your .vimrc could be a catastrophe!
So remember to variously back it up. One good place is to store it as, say vimrc.txt, on your free webspace then you can recover it from anywhere.
2) COMMENTING .VIMRC : My .vimrc now has 348 lines, but about 50% is deadwood because it's no longer clear to me what it's supposed to do, wish I'd thought of this tip years ago!. In .vimrc you use the double quote as a comment
e.g.
" open search result in a new window (the comment)
map zm :let @/=expand("<cword>") <BAR> split <BAR> execute 'normal n'<CR>
<<Always keep quickfix window at specified height |
how to overwrite a visual-block of text with another such block >>
Additional Notes
|