range: lines n-m
:n,m
range: current line
:.
range: last line
:$
range: marker c
:‘c
range: all lines in file
:%
range: all lines that contain pattern
:g/pattern/
deleted lines n-m using a range
:n,md
replace all occurences of pattern with string from lines n-m
:n,ms/pattern/string/g