Vi Editor Flashcards
1
Q
Why vi
A
fast and easy
2
Q
Basic modes-
A
edit and command,
3
Q
‘esc’
A
for command mode
4
Q
‘i, a’
A
for edit mode (insert or append mode)
5
Q
:q
A
for quit
6
Q
:w
A
for write
7
Q
:q!
A
quit without save
8
Q
:e
A
open another file for editing
9
Q
:wq
A
write and quit
10
Q
in command mode, what does ‘/’ let you do?
A
allows you to search for a word
11
Q
‘n’
A
for forward search
12
Q
‘N’
A
for backward search
13
Q
what whill this command do? :s/ram/mohan
A
-will search string “ram” and replace with “mohan”