Help
-
Search
-
Members
-
Calendar
Full Version:
vi/vim tips
linux-noob.com/forums
>
Linux Noob
>
Tips and Tricks
Ritter
Jun 4 2007, 08:46 PM
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
Jun 5 2007, 08:55 AM
My favoured vim tip is:
CODE
gq
Which reformats the line
xDamox
Jun 5 2007, 01:16 PM
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.