Monday, 26 October 2015

vim Remove Comments using REGEX | Remove comments of Asterisk Configuration files

By vm  |  23:34 No comments

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)

Author: vm

Hello, I am Author, decode to know more: In commodo magna nisl, ac porta turpis blandit quis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In commodo magna nisl, ac porta turpis blandit quis. Lorem ipsum dolor sit amet.

0 comments:

E-mail Newsletter

Sign up now to receive breaking news and to hear what's new with us.

Recent Articles

© 2014 VOIP4Learn. WP themonic converted by Bloggertheme9. Powered by Blogger.
TOP