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

This commit is contained in:
Junegunn Choi committed 2015-05-20 01:38:05 +09:00
1 parent 179fa7bb82
commit 7ace0c42db
3 files changed
+22

No files matched your search

+4
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