Vi Editor Flashcards

1
Q

Why vi

A

fast and easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Basic modes-

A

edit and command,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

‘esc’

A

for command mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

‘i, a’

A

for edit mode (insert or append mode)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

:q

A

for quit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

:w

A

for write

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

:q!

A

quit without save

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

:e

A

open another file for editing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

:wq

A

write and quit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

in command mode, what does ‘/’ let you do?

A

allows you to search for a word

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

‘n’

A

for forward search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

‘N’

A

for backward search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what whill this command do? :s/ram/mohan

A

-will search string “ram” and replace with “mohan”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly