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%


