Tip #820: VimTip is a one-stop resource to vim. Keep it in your $VIM directory
tip karma |
Rating 56/23, Viewed by 2021
|
created: |
|
November 11, 2004 6:50 |
|
complexity: |
|
basic |
author: |
|
Staale Flock |
|
as of Vim: |
|
6.0 |
The VimTip textfile and database has become one of my favorite ways to learn
new tricks in vim. So I keep it easy available at all times and have applied
some of the nice tricks I have learned to the file to make it easier to read.
1: Get the text file (wget is a external tool, you can get a windows version)
Download the text version with a browser or use wget like this.
On the vim commandline: (It's all on one line)
:!wget https://www.vim8.org/tips/tip_download.php?download=download -O
~/.vim/vimtips.txt
2: Open it and apply foldmarks.
:e ~/.vim/vimtips.txt
:%s/\(^VimTip\)/\1\t{{{1/g
:set foldmethod=marker
3: Now you should have a nice index of all the vimtip's provided. Open a fold
by placing the cursor on a line and hit za. Open all folds with zR. Close them
again with zM
4: After some vimtip's reading you shoul be able to make a automatic process of it to update your vimtips.txt file regularly.
Happy vim'ing
Best Regards
Staale Flock
<<Quick (Re-)starting and Iconizing gvim with keystrokes for Windows |
Simplest buffer explorer ever >>
Additional Notes
|