DEV Community

Damanpreet Singh
Damanpreet Singh

Posted on

Vim: Delete all lines containing a pattern

Use this command to delete all lines containing pattern -

:g/pattern/d
Enter fullscreen mode Exit fullscreen mode

Top comments (0)