Beruflich Dokumente
Kultur Dokumente
1
Editors
2
VI Editor modes
3
VI Editor - Modes
Press
Press
Press i,i,II a,
a,A,
A,o,o,O
O
Press or
Shift
Shift++:: orINSERT
INSERT
to to
to enter
enter intointo the
the
to go
go into
into execute
execute Command Mode
insert
mode
mode insert mode from
mode from
command
commandmode mode
Press Press
Press
Press ESCAPE
You can ESCAPE ESCAPE
ESCAPEto come out from
Youto
Executecansave
save
Mode to
Insert
Insertyour
come out Insert
from your
Mode
to come
yourtext come
here
out from
outthe
from text
yourtext
the here mode
insert thetoexcute
excute mode
mode texthere
here
the insert mode
to to
command
commandmodemodetocommand
commandmodemode
4
How to get into Insert Mode
5
At Execute Mode
6
At Execute Mode
7
Delete/Copy/Paste/Undo in command mode
dd - Deletes a line
2dd - Deletes 2 lines
yy - Copy a line
2yy - Copies 2 lines
p - After deleting or copying, by pressing
the deleted or copied contents will
be pasted below the position of cursor.
u - Undo (can undo 1000 times)
Ctrl+r - Redo
G - Moves cursor to last line of file
5G - Moves cursor to 5th line of file
8