Skip to main content
2 of 2
The vim-commentary command to comment a single line is `gcc` and not simply `gc` (which expects a motion.)
filbranden
  • 29.9k
  • 5
  • 28
  • 73

Try using :g/\\draw/norm gcc

From :help norm:

Execute Normal mode commands {commands}. This makes it possible to execute Normal mode commands typed on the command-line. {commands} are executed like they are typed.

gandalf3
  • 287
  • 2
  • 8