[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
slackbook:vi [2012/09/16 15:08 (UTC)] – [Moving Around] Updated with original text and formatting mfillpotslackbook:vi [2012/09/16 15:11 (UTC)] (current) – [Sources] updated author list and tags mfillpot
Line 151: Line 151:
 ===== Editing A Document ===== ===== Editing A Document =====
  
-Now that we're able to open and save documents, as well as move around in them, it's time to learn how to edit them. The primary means of editing is to enter insert mode using either the i or a command keys. These either insert text at the cursor's current location, or append it after the cursor's current location. Once into insert mode, you can type any text normally and it will be placed into your document. You can return to command mode in order to save your changes by pressing the ESC key. +Now that we're able to open and save documents, as well as move around 
 +in them, it's time to learn how to edit them. The primary means of 
 +editing is to enter insert mode using either the <key>'i'</key> or 
 +<key>'a'</key> command keys.  These either insert text at the 
 +cursor's current location, or append it after the cursor's current 
 +location. Once into insert mode, you can type any text normally and it 
 +will be placed into your document.  You can return to command mode in 
 +order to save your changes by pressing the <key>'ESC'</key> key.
 ===== Vi Cheat Sheet ===== ===== Vi Cheat Sheet =====
  
-Since vi can be difficult to learn, I've prepared a short cheat sheat that should help you with the basics until you begin to feel comfortable.+Since **//vi//** can be difficult to learn, I've 
 +prepared a short cheat sheat that should help you with the basics until 
 +you begin to feel comfortable.
  
 ^ Command ^ Result ^ ^ Command ^ Result ^
Line 187: Line 195:
 |:w file|Save the current document as 'file'| |:w file|Save the current document as 'file'|
 |:x|Save and quit| |:x|Save and quit|
- 
 ====== Chapter Navigation ====== ====== Chapter Navigation ======
  
Line 193: Line 200:
  
 **Next Chapter: [[slackbook:emacs|Emacs]]** **Next Chapter: [[slackbook:emacs|Emacs]]**
-======Sources======+====== Sources ====== 
 +<!-- If you copy information from another source, then specify that source --> 
 +  * Original source: [[http://www.slackbook.org/beta]] \\ 
 +<!-- Authors are allowed to give credit to themselves! --> 
 +  * Originally written by Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson 
 +<!-- * Contrbutions by [[wiki:user:yyy | User Y]] -->
  
-  * Original source: http://slackbook.org/beta/#id331567 (authors: Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson)+<!-- Please do not modify anything below, except adding new tags.--> 
 +<!-- You must also remove the tag-word "template" below. Otherwise your page will not show up in the Table of Contents --> 
 +{{tag>slackbook vi text_editor}}
 slackbook:vi ()