Andrew Channels Dexter Pinion

Wherein I write some stuff that you may like to read. Or not, its up to you really.

April 06, 2004

Opening Another file in VIM

Every day I learn to love my favourite editor/ide/programmer's swiss army knife just a little bit more.

Today's reason? Courtesy of this tip I discovered the command "gf". It opens the file whose name is currently under your cursor in another buffer ready for editing. It's a godsend when editing, for instance, the HTML for a web page. Wherever there is a link to another page just place your cursor after the HREF and press the magic keys.

Posted by Andy Todd at April 06, 2004 08:10 PM

Comments