Archive for the 'VIM' Category

Best of VIM

Tuesday, August 1st, 2006

http://www.rayninfo.co.uk/vimtips.html
this has already come in handy to help me solve this one:
:%s/\n”\@!/ — /g

Read full post...

Doing Cool Things with VIM - Yanking

Saturday, June 10th, 2006

<rant>
The worst thing about the majority of VIM tutorials/books is that they start in the most obvious place. If I’m interested in a text editor and after reading the first chapter of a book all I know how to do is move the cursor around, I’m not going to be that impressed. Lets face it, […]

Read full post...

Vim: Converting HTML List items to OPML

Monday, October 10th, 2005

I was trying to convert a long list of html items to an OPML file. The regex refused to work, and after a quick chat with the nice people in #vim, it turns out that I wasn’t escaping my parenthesis.

:%s/<li><a href=”\(.*\)”>\(.*\)< \/a><\/li>/<outline text=”\2″ url=”\1″>/
I found the escaping a bit counter-intuative… like the rest of […]

Read full post...