I want to add support for various formats of filenename with linenumber for vim to understand. E.g. I get output from git grep <keyword>
like this:
first/foo.py:123:
first/bar.py:333:
second/foo.py:777:
To open these files and jump to a specific line I have to change the format to e.g.:
first/foo.py +123
first/bar.py +333
second/foo.py +777
I wonder if there is a way to automatically make this conversion so that in command line this statement:
vim first/foo.py:123:
would have the same result as this command:
vim first/foo.py +123
It would also be great if vim could understand Python traceback line format, e.g.:
File "/third/foo.py", line 55,