Sample Header Ad - 728x90

vim - open file and goto line number using <filename>:<line nbr>:

31 votes
4 answers
10236 views
Several tools such as grep, py.test, etc ... use the pattern :: to point to errors. For example: ; grep -Hn Common setup.cfg setup.cfg:11: Common How can I modify vim and gvim so that I can invoke them like so: gvim setup.cfg:11: instead of gvim setup.cfg +11 I know that I can write a small shell script that would parse things but I wonder if there is an easier way.
Asked by Sardathrion - against SE abuse (4493 rep)
Oct 5, 2012, 07:14 AM
Last activity: Dec 3, 2018, 08:05 AM