standard way include plugin as a dependency of another plugin

2017-07-29 Thread sash...@gmail.com
Hi

I'm writing a plugin and want it to depend on another plugin installed. At the 
moment I just have a line

source 

in my plugin that pulls in that plugin. Is there a standard way of doing this 
or do plugin authors just invent their own way? Could I use Vundle here instead?

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why the bufnew not work here?

2017-07-29 Thread Nikolay Aleksandrovich Pavlov
2017-07-29 18:45 GMT+03:00 Zhe Lee :
> I use
> au BufNewFile *.py 0r headerfile/python.header
>
> in my vimrc file . I want to auto add snippet when the python file is create. 
> But it doesn't work, when I use the "gvim newpy.py" command in command 
> prompt. How to fix this?

This looks like something which will not work in many cases: :read is
supplied relative path, but do you have `headerfile/python.header` in
each directory you happen to run Vim from?

It should “work” by throwing E484 error message though. For me it
works, but error message and “Press ENTER” prompt are hidden by
further setup. Check `:messages`.

>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to vim_use+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why the bufnew not work here?

2017-07-29 Thread Zhe Lee
I use 
au BufNewFile *.py 0r headerfile/python.header

in my vimrc file . I want to auto add snippet when the python file is create. 
But it doesn't work, when I use the "gvim newpy.py" command in command prompt. 
How to fix this? 

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.