bogado / file-line

Plugin for vim to enabling opening a file in a given line
http://www.vim.org/scripts/script.php?script_id=2184
299 stars 61 forks source link

Allow opening files with garbage behing colon #85

Open xim opened 2 years ago

xim commented 2 years ago

E.g if someone does a grep and gets output like this:

$ grep -r TODO
myfile:TODO add some stuff
otherfile:TODO other stuff

Then I like to just choose a file by double clicking the name and writing e.g. vim myfile:TODO without having to erase the TODO bit.

This is accomplished by allowing zero digits in the line number.