7
1
I would like to pass the file name and the current line number where my cursor is at, separated by colon, to an external shell script. For example, if am editing the file "foo.c" and I am currently on line 77, I'd like to call my script from vim with the argument "foo.c:77".
1Also: consider using
shellescape()
to protect any special characters. – Chris Johnsen – 2012-08-29T03:07:33.800