The :global/{pat}/{cmd}
command will run a command, {cmd}
, on every line matching pattern, {pat}
. You can execute your tComment command via the :normal
command. All together it looks like this:
:g/@login_required/norm gcc
For more help see:
:h :g
:h :norm