Vi editor

From GHER

(Difference between revisions)
Jump to: navigation, search
(Blanked the page)
 
Line 1: Line 1:
-
[http://en.wikipedia.org/wiki/Vi vi] is a text editor originally created for Unix.
 
-
Several guides are available through internet. Here we just summarize a few useful commands with which you can survive with vi:
 
-
 
-
vi file.txt
 
-
 
-
will open the text file with the editor. Once with the editor, type
 
-
 
-
* '''i'''  to inserts text to the left of the cursor (insert mode)
 
-
* '''Esc''' to stop the insert mode
 
-
* ''':w''' to write the changes you made
 
-
* ''':q''' to quit the editor
 
-
* ''':wq''' to write and quit
 
-
* ''':q!''' to quit without saving the file
 
-
 
-
== Guides and tutorials ==
 
-
 
-
More complete guides available at:
 
-
* http://www.cs.rit.edu/~cslab/vi.html
 
-
* http://acms.ucsd.edu/info/vi_tutorial.shtml
 
-
* http://www.eng.hawaii.edu/Tutor/vi.html
 
-
 
-
== Turn on/off color syntax ==
 
-
 
-
cd
 
-
vi .vimrc
 
-
 
-
then put in file .vimrc
 
-
syntax on
 

Latest revision as of 13:49, 22 June 2017

Personal tools