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

Breaks templates loading #61

Closed
joe-skb7 opened this issue Nov 1, 2015 · 3 comments · Fixed by #60
Closed

Breaks templates loading #61

joe-skb7 opened this issue Nov 1, 2015 · 3 comments · Fixed by #60

Comments

@joe-skb7
Copy link
Contributor

joe-skb7 commented Nov 1, 2015

I have next line in my .vimrc:

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

This loads 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).

@joe-skb7
Copy link
Contributor Author

joe-skb7 commented Nov 3, 2015

I created workaround (dirty hack) to fix this issue:

-autocmd VimEnter * call s:startup()
+if (@% != 'main.c')
+       autocmd VimEnter * call s:startup()
+endif

It works for me, but it needs to be done in different way. Unfortunately I'm not into vim scripting language, so I couldn't come up with proper production patch.

@bogado bogado closed this as completed in #60 Nov 4, 2015
@joe-skb7
Copy link
Contributor Author

joe-skb7 commented Nov 4, 2015

@bogado This issue isn't fixed and should be reopened. There is no patch yet to fix it.

@joe-skb7
Copy link
Contributor Author

joe-skb7 commented Nov 4, 2015

@bogado Ok, never mind, I created new issue for this :) See #62

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 a pull request may close this issue.

1 participant