Tuesday, December 10, 2019

Useful VI Tricks for Editing Asterisk Configuration Files

Useful VIM Tricks for asterisk configuration

Scrub out all default documentation lines and blank lines. Just show the current configuration.

remove all commented lines
:g/^\s*;/d

remove all blank lines
:g/^$/d

No comments:

Post a Comment