Trying to delete all lines containing HAVING
in a query that I'm writing using global search and it's not working.
Tried both commenting and deleting.
query text
HAVING value > 200
query text
Search examples:
:g/HAVING/d
:g/HAVING/s/^/--/g
After entering the command I get the following messages:
VIM - Not an editor command: g|g/HAVING/d
and
VIM - Not an editor command: g|g/HAVING/s/^/--/g
Version PyCharm 2020.1.2
Build Number: PC-201.7846.77
IdeaVim Version: 0.59
Note that I've successfully tested both of these commands in VIM
in the terminal. Both work work in PyCharm if I don't specify the g
(but it only does one line at a time), e.g. the following works for one line at a time:
:/HAVING/d
:global
and:vglobal
commands aren't supported by IdeaVim at the moment. However, this is one of the top voted issues, so it should be implemented soon. Here is the ticket: https://youtrack.jetbrains.com/issue/VIM-831