[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
Next revisionBoth sides next revision
slackbook:vi [2012/09/02 05:31 (UTC)] – [What is vi?] allendslackbook:vi [2012/09/12 20:57 (UTC)] – [Sources] sycamorex
Line 29: Line 29:
                                      Command</code>                                      Command</code>
  
-At this point, the user will being typing and expect the keys he presses to appear in the document. Instead, something really strange happens. The reason for this is simple. vi has different operation "modes". There is a command mode and an insert mode. Command mode is the default; in this mode, each keystroke performs a particular action such as moving the cursor around, deleting text, yanking (copying) text, searching, etc.+At this point, the user will begin typing and expect the keys pressed to appear in the document. Instead, something really strange happens. The reason for this is simple. vi has different operation "modes". There is a command mode and an insert mode. Command mode is the default; in this mode, each keystroke performs a particular action such as moving the cursor around, deleting text, yanking (copying) text, searching, etc.
  
 ===== Opening, Saving, and Quitting ===== ===== Opening, Saving, and Quitting =====
Line 80: Line 80:
 |X|Delete the previous character| |X|Delete the previous character|
 |u|Undo the last action| |u|Undo the last action|
-|:s'old'new'g|Replace all occurances of 'old' with 'new' (current line only)| +|:s'old'new'g|Replace all occurrences of 'old' with 'new' (current line only)| 
-|:%s'old'new'g|Replace all occurances of 'old' with 'new' (all lines)| +|:%s'old'new'g|Replace all occurrences of 'old' with 'new' (all lines)| 
-|/asdf|Locate next occurance of asdf|+|/asdf|Locate next occurrence of asdf|
 |:q|Quit (without saving)| |:q|Quit (without saving)|
 |:w|Save the current document| |:w|Save the current document|
Line 88: Line 88:
 |:x|Save and quit| |:x|Save and quit|
  
-=====Sources=====+====== Chapter Navigation ======
  
- * Original source: http://slackbook.org/beta/#id433025 (authors: Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson)+**Previous Chapter: [[slackbook:working_with_filesystems|Working with Filesystems]]** 
 + 
 +**Next Chapter: [[slackbook:emacs|Emacs]]** 
 +======Sources====== 
 + 
 +  * Original source: http://slackbook.org/beta/#id331567 (authors: Alan Hicks, Chris Lumens, David Cantrell, Logan Johnson)
 slackbook:vi ()