-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Question about dein#tap() #18
Comments
because maybe you do not download,and rtp do not change before dein#end() |
Yes. |
I need write something about why hooks. set nocompatible
syntax on
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'Shougo/unite.vim'
" you can not put you confg here ,and you can not call
"unite's func here because rtp is changed after
" end(),but with the help of hooks ,we can put config
"and plugin together,it looks better,and if we do
"not want to use some plugin,just need to disable plugin ,
"and the config will not be loaded,that is
"why I using dein or neobundle
call vundle#end()
filetype plugin indent on for dein call dein#add('Shougo/deoplete.nvim')
if dein#tap('deoplete.nvim') && has('nvim')
let g:deoplete#enable_at_startup = 1
execute 'autocmd MyAutoCmd User' 'dein#source#'.g:dein#name
\ 'source ~/.vim/rc/plugins/deoplete.rc.vim'
endif |
But most times, plugins are saved in another file, like in a toml one. So, you are still going to put the configuration after afaik, the |
It works if the plugin is lazy loaded. |
Thanks, I understand now. So using |
Yes, it has the advantage. |
So it's always useful even when plugins that aren't being lazy loaded? |
Yes |
I've seen some vimrc's and a lot of them that use neobundle, or yours even that uses dein... "wrapping" plugins configuration like:
It's strange, because if the plugin is added to dein, why I would want to check again if it exists? Or is it that dein loads the value between that
if … endif
only when the plugin is actually being loaded?The text was updated successfully, but these errors were encountered: