Ranges Flashcards
1
Q
range: lines n-m
A
:n,m
2
Q
range: current line
A
:.
3
Q
range: last line
A
:$
4
Q
range: marker c
A
:‘c
5
Q
range: all lines in file
A
:%
6
Q
range: all lines that contain pattern
A
:g/pattern/
7
Q
deleted lines n-m using a range
A
:n,md
8
Q
replace all occurences of pattern with string from lines n-m
A
:n,ms/pattern/string/g