Using VIM to Remove SQL Comments

Published on January 6, 2010 by Andrew Sledge in Quick Tips

Cleaning up the comments in a SQL file, specifically after using mysqldump.

:%s/^--[a-zA-Z0-9\`\ \_]*$\n//g

Tags: vim     Permalink   Bookmark and Share

Comments


No comments for this post.

Post a comment