Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vi/vim tips
#1

Consult [/url][url=http://lagmonster.org/docs/vi2.html]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.

Reply
#2

My favoured vim tip is:

 



Code:
gq




 

Which reformats the line :P

Reply
#3
Nice post Ritter
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)