vim -c "%g/^#/d _|wq" file.txt