Trigger User autocmd when plugin is loaded on demand (#231)

This commit is contained in:
Junegunn Choi
2015-05-20 01:37:14 +09:00
parent 179fa7bb82
commit 7ace0c42db
3 changed files with 22 additions and 0 deletions

View File

@@ -134,6 +134,10 @@ Plug 'kovisoft/paredit', { 'for': ['clojure', 'scheme'] }
" On-demand loading on both conditions
Plug 'junegunn/vader.vim', { 'on': 'Vader', 'for': 'vader' }
" Code to execute when the plugin is loaded on demand
Plug 'Valloric/YouCompleteMe', { 'for': 'cpp' }
autocmd! User YouCompleteMe call youcompleteme#Enable()
```
`for` option is generally not needed as most plugins for specific file types