VOIP4Learn
A Blog about VOIP.
Monday 26 October 2015
vim Remove Comments using REGEX | Remove comments of Asterisk Configuration files
You can try this command:
:
g
/^
\(
#\|$\)/d
Or (Use ; for the Asterisk PBX configuration files.)
:
g
/
\v
^(#|;
)/
d
\|
is for alternation
\v
is very magic (minimal backslash escape)
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment