How can you remove given lines efficiently in Vim?
I want to remove all lines which match this
:g!/div/
I unsuccessfully ran:
:g!/div/s/^*//g
feedback
|
This question came from our site for professional and enthusiast programmers.
Works just fine to do what you want. | |||||||||||||
feedback
|