Delete lines matching pattern

Delete all lines starting with # (comment lines)

:g/^#/d

tool
vim10 commands
tags
vimlinux

More vim commands

all 10 vim commands