Opening a file with vi
nicely highlights its contents.
However, I want to view the file with all lines containing clock_gettime
hidden. By using the global command :g!/clock_gettime
I get the required output but it loses all syntax highlighting.
Is there a way to view only a set of lines matching (or not matching) the given expression in a way that all visible content is also properly highlighted?