Does anyone know how to delete:
- lines with highlighted text
- all highlighted text self
(highlighted text (p.e. after a search) not selected text)
Is there a command which search all highlighted text and delete the line?
(independent which search command or function I used to highlight text)
the g/pattern/d command does not always delete the highlighted text
p.e. /^\(.*\)\(\n\1\)\+$ –> highlight all double lines
but g/^\(.*\)\(\n\1\)\+$/d –> does NOT delete all double lines
Well, you can delete the searched pattern this way:
And you can delete the whole line with the searched pattern this way: