vim

delete multiple lines

# lines between 10 and 20 will be deleted
:10,20d

show line number

:set nu

replace all

:%s/foo/bar/g

Last updated

Was this helpful?