:g/[<#}]/p This vim expression: matches a line that contains one of the following characters and prints it < # } Now I want to match all lines that do not contain the character < #}. how do I write regular expressions?
:v/[<#}]/pJust do it
v/patternThe meaning is to find
Those results that do not conform to pattern.
You can pass
:help :gSee the difference between them.