Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

junkblocker
Copy link

No description provided.

Sam Protsenko and others added 4 commits June 12, 2019 19:57
It was noticed that file_line plugin breaks the loading of
other plugins. For example, when having next line in ~/.vimrc:

    au BufNewFile main.c silent! 0r ~/.vim/skeleton/template.c

this line loads the content from template file when I'm creating new
main.c file. But when file-line plugin is installed this functionality
doesn't work (newly created main.c is blank). This patch fixes that.

Also, it was reported that file_line breaks vim-go plugin. I haven't
check if this patch fixes it though.

Fixes: bogado#62

Signed-off-by: Sam Protsenko <[email protected]>
… add custom patterns via g:file_line_ regexpressions global
* junkblocker/master:
  Handle file#L123 printed by some perl's Carp 'croak' + Add ability to add custom patterns via g:file_line_ regexpressions global
* joe-skb7/master:
  Fix other plugins loading
@RobertAudi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants