CartMetrix - Do you know yours?

« Command Line PHP to Return Date From Timestamp | Home | Are You Competing With Google’s Own Employees For Adwords? »

9/9/2005

Vim Tricks

View a diff of two files:

vim -d fileone filetwo

Recompare the files and update the diff view:

:diffupdate

Set both views to scroll in unison:

:set scrollbind

Split the window and open a new file:

:split filetwo

Turn on line numbering:

:set number

Turn off line numbering:

:set nonumber

Open Vim's internal file browser:

:edit path

Open an included file. Place the cursor under the filename

include('stdlib.php');

and type:

gf

Vim will search for the file in the path and open it

Popularity: 9%

Trackback:

Related Posts

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2008 damonparker.org. all rights reserved.

Close
E-mail It