:g/^\s*#/d will remove comment lines from a file with Vim.
Delete CommentsApril 18, 2015:g/^\s*#/d will remove comment lines from a file with Vim.Please enable JavaScript to view the comments powered by Disqus.