Jump to content

VI editor


aze
 Share

Recommended Posts

VI is a bit wonky but doing simple editing with it is pretty easy once you know how.

 

VI is a modal editor. When you start it up you are in command mode. You can scroll around but can't edit anything. To get into edit mode you press i. Now you can modify the text all you want. Pressing ESC will exit edit mode and go back to command mode. Once you have modified the text to your satisfaction you can write it back to the file by issuing the write command. Press :w <ENTER>. To exit issue the exit command by pressing :q <ENTER>. If you made modifications but don't want to save them then the program will not let you exit this way (as a precaution against losing your changes). In this case you have to type :q! <ENTER> in order to exit.

 

Once you've used it for a bit you'll get used to it.

 

Glitz.

 

PS. I don't really like it much either but it gets the job done.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...
 Share

×
×
  • Create New...