Help - Search - Members - Calendar
Full Version: vi/vim tips
linux-noob.com/forums > Linux Noob > Tips and Tricks
Ritter
Consult http://lagmonster.org/docs/vi2.html for more, I found its a pretty good reference.

However one option seems understated. If you want to delete everything from the cursor to the end of the file you'd do (while out of INSERT mode):
CODE
dG

The d tells vi to delete, the G tells vi to go to the end of the file.
znx
My favoured vim tip is:

CODE
gq


Which reformats the line tongue.gif
xDamox
Nice post Ritter
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.