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

Handle file#L123 printed by some perl's Carp 'croak' + Add ability to define custom regexps #79

Open junkblocker opened 3 years ago

RobertAudi commented 3 years ago

Unfortunately using the file#L123 syntax from within Vim will result in the following error:

E194: No alternate file name to substitute for '#'

I haven't found a solution yet, but the syntax works from the command line:

$ vim file#L123

For Zsh users the # needs to be escaped to bypass globing:

$ vim file#L123
zsh: no matches found: file#L123
$ vim file\#L123 : works