Jump to content
Sign in to follow this  
Ritter

vi/vim tips

Recommended Posts

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):

dG

The d tells vi to delete, the G tells vi to go to the end of the file.

Share this post


Link to post
Share on other sites

My favoured vim tip is:

 

gq

 

Which reformats the line :P

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...