I am trying to create a user defined command in vim as a replacement for a quickfixlist command
I defined the command like this:
:command G -nargs=1 cr <args>
Now, when I type :G 1, I expected vim to execute :cr 1 and go to error number 1 from quickfix list. Instead I get a "trailing characters" error. Any idea what might be causing this?
Thank you