2 Vi – remove all comments Posted on May 13, 2019 by rafpe Just run single command ( regex might require modifications ) g/\v^(#|$|;)/d