Replace Flashcards

1
Q

replace pattern with string according to flags

A

:s/pattern/string/flags

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

flag: replace all occurrences of pattern

A

g

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

flag: confirm replaces

A

c

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

repeat last :s command

A

&

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