This is a test post from vimpress.
Archive for the ‘Vim’ Category
get all vimtips(with comments and rank record) from vim’s homesite
July 31, 2006There are tons of very smart vim tips at http://vim.sf.net. There is a tarball at the website you can download, but there is no comment and rank record in the tarball. That is a little pity since there may be some more smart tips in the comments that is inspired by the tip’s author. And also the tip’s rank record is very useful especially when there are too many tips to read them one by one.
So I make a simple script to download all the tips with comments and rank record from vim’s homesite.
======================================88=====================================================
The script is very simple, it use w3m to download and dump the tip’s webpage(not html source file), and use cut and sed to remove the useless parts, add a line of equal signs to seprate different tips. To get tips from 1 to 1000, invoke the command from shell:
$ for i in `seq 1 1000`; do get_vim_tip.sh $i >> vim_tips.txt ; echo [$i Done]; done
You don’t need to run the script by yourself, I have uploaded a tarbar to http://vim.sourceforge.net/scripts/script.php?script_id=1619. Hope this can help you.
Happy Vimming!
use vim to view web page’s source and edit text in editbox within firefox
July 31, 2006Firefox is a very good web browser, in fact it is my default browser under Linux, Windows, or maybe Mac OS X Tiger if I can get a MacBook later
One of the best thing of firefox is that there are tons of extentions for firefox and them covers so many function. Vim is my favourite editor, if I can use vim to edit any text or view the html source in firefox that will be great! Yes, we can do it, with the help of smart
firefox’s extention — ViewSourceWith [http://dafizilla.sourceforge.net/viewsourcewith/index.php]. It is really smart and I strongly suggest you to give it a try. With its help, you can specify any editor you like. And it works in thunderbird, too. I use another firefox extention named keyconfig [http://mozilla.dorando.at/], then whenever I want to view html source or edit text in a editbox, I just press shortcut keys then vim shows up! It is really convenient and make my life easier!