Amiga Unix Wiki

Because AmigaOS just isn't obscure enough today!

User Tools

Site Tools


vi-editor

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
vi-editor [2018/08/30 22:24] – external edit 127.0.0.1vi-editor [2019/02/23 16:24] – re-done tables wiki_admin
Line 1: Line 1:
 ====== Using the vi editor ====== ====== Using the vi editor ======
  
-For any linux/unix- newbies like me, a quick tutorial on the vi editor might be needed. Here are some short instructions on using it, taken from the "Using Amiga UNIX" manual, page 99-119.+//For any linux/unix- newbies like me, a quick tutorial on the vi editor might be needed. Here are some short instructions on using it, taken from the "Using Amiga UNIX" manual, page 99-119.//
  
 Using the vi editor Using the vi editor
Line 19: Line 19:
 The vi editor doesn't automatically wrap text, so you must press RETURN when you reach the end of a line on your screen. The vi editor doesn't automatically wrap text, so you must press RETURN when you reach the end of a line on your screen.
  
-Special keys +<table label> 
-ESC cancel insert mode +<caption>Special keys</caption> 
-CTRL-L redraw screen +ESC cancel insert mode | 
-CTRL-D scroll down +CTRL-Lredraw screen| 
-CTRL-U scroll up+|CTRL-D|scroll down| 
 +|CTRL-U|scroll up
 +</table>
  
-Quit and save +<table label> 
-:q! quit without saving +<caption>Quit and save</caption> 
-:wq save and quit a file +|:q!|quit without saving| 
-:w save your work +|:wq|save and quit a file| 
-:r file read another file into your current file+|:w|save your work| 
 +|:r|file read another file into your current file
 +</table>
  
-Move in a file +<table label> 
-w to next word +<caption>Move in a file</caption> 
-0 back to beginning of line +|w|to next word| 
-$ to end of line +|0|back to beginning of line| 
-G to the lasLline +|$|to end of line| 
-:n move to line numher n+|G|to the lastline| 
 +|:n|move to line number n
 +</table>
  
-Insert and append +<table label> 
-i insert text +<caption>Insert and append</caption> 
-a add text +|i|insert text| 
-o add blank line+|a|add text| 
 +|o|add blank line
 +</table>
  
-Delete text +<table label> 
-X delete character +<caption>Delete text</caption> 
-dw delete word +|X|delete character| 
-dd delete line +|dw|delete word| 
-ndd delete n lines+|dd|delete lline| 
 +|ndd|delete n lines
 +</table>
  
-Undo and repeat +<table label> 
-u undo last change +<caption>Undo and repeat</caption> 
-U undo changes to line +|u|undo last change| 
-. (dot) repeat last change+|U|undo changes to line| 
 +|.(dot)|repeat last change
 +</table>
  
-Move and copy +<table label> 
-dd cut +<caption>Move and copy</caption> 
-yy yank (copy) +|dd|cut| 
-p paste below+|yy|yank (copy)| 
 +|p|paste below
 +</table>
  
-Change text +<table label> 
-cw change word +<caption>Change text</caption> 
-cc erase a line and insert +|cw|change word| 
-c change to end of line+|cc|erase a line and insert| 
 +|c|change to end of line
 +</table>
  
-Search +<table label> 
-/ search +<caption>Search</caption> 
-n repeat search +|/|search| 
-N reverse search+|n|repeat search| 
 +|N|reverse search
 +</table>
vi-editor.txt · Last modified: 2021/09/19 18:00 by 127.0.0.1