summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/deoplete.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/deoplete.vim b/plugin/deoplete.vim
index bc9c822..7377e7b 100644
--- a/plugin/deoplete.vim
+++ b/plugin/deoplete.vim
@@ -11,5 +11,9 @@ let g:loaded_deoplete = 1
" Global options definition.
if get(g:, 'deoplete#enable_at_startup', 0)
- autocmd VimEnter * call deoplete#enable()
+ if has('vim_starting')
+ autocmd VimEnter * call deoplete#enable()
+ else
+ call deoplete#enable()
+ endif
endif