In my file containing
latex source code, I wish to comment out all the lines matching a pattern (specifically, the pattern that I am interested in is
\draw, including the
magic mode enabled.I think a potential solution would be to use the
global command i.e. something along the lines of
I am unsure of the
command that achieves my task. I would like to seek your help through either of the methods below:
a) I have Tim Pope's
commentary plugin which provides the
gc mapping, that works in normal mode. However, this does not work here.
b) Maybe use the normal mode
I command and use the comment character for
latex, i.e. the
% character on those lines matched by the global command
If a simpler alternative(s) exist in addition to the ones mentioned above, I am of course glad to learn about it too!