/file-line

Allows you to open file:line and it does the right thing :-)

Primary LanguageVim Script

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2184

When you open a file:line, for instance when coping and pasting from an error from your compiler vim tries to open a file with a colon in its name. With this little script in your plugins folder if the stuff after the colon is a number and a file exists with the name especified before the colon vim will open this file and take you to the line you wished in the first place.

This script is licensed with GPLv3 and you can contribute to it on github at https://github.com/bogado/file-line .