Linux
Linux
Page 1
Agenda
WHAT IS VI EDITOR?
HISTORY OF VI.
CHARACTERISTIC OF VI.
STARTING VI
MODE IN VI EDITOR.
COMMON VI COMMAND
HOW TO EXIT FROM VI
Page 2
What is Vi Editor?
Page 3
History of Vi Editor
Although other stories exist, the true one tells that vi was originally written
by Bill Joy in 1976.
Page 4
Characteristics of vi
Page 5
Starting vi
Page 6
Vi modes
Page 7
VI EDITING MODES
Esc
Command Input
Mode Mode
Insert (i, I)
: Return Append (a, A),
Open (o, O)
Change (c),
Replace (r, R)
Last-Line
Mode
Page 8
Common Vi Commands
Page 9
Conti..
- - (minus) moves the cursor to the first character in the current line
H - takes the cursor to the beginning of the current screen Home position)
L - moves to the Lower last line
M - moves to the middle line on the current screen
Page 10
Conti..
Page 11
Editing text
Page 12
Copy, cut and paste in vi
Page 13
Undo and repeat command
Page 14
How to exit from vi
(command mode)
:q <enter> is to exit, if you have not made any changes to the file
Page 15
Thank You
Page 16