I often use
grep with the
-n option to list line numbers, e.g.
$ grep -n xyz .* /ext1/acheong/foo/bar/a.cc:42: inline bool abc(int xyz); /ext1/acheong/foo/bar/a.cc:43: inline bool def(int xyz); /ext1/acheong/foo/bar/b.cc:415: int xyz = result; /ext1/acheong/foo/bar/b.cc:490: xyz += result; $
Would it be possible to alias
vim in such a way that doing
would open the file and seek line 415 automatically?
Is it possible in
csh? (Yes, yes,
csh brings out the devil and all that is unholy; but I've no choice...) An answer for other shells would be useful, too.