以前の記事 で記載した、 plugpac 。 非常に便利に使っているが、 dein にあるような、 event による遅延ロードもあったらいいなと思ったので追加した。

記載方法はこんな感じ。

" Plugins: {{{1
Pack 'RRethy/vim-illuminate', {'type': 'opt', 'event': ['CursorHold', 'CursorMoved']}
Pack 'airblade/vim-rooter', {'type': 'opt', 'event': 'BufEnter'}
Pack 'honza/vim-snippets', {'type': 'opt', 'event': 'InsertEnter'}
Pack 'itchyny/vim-cursorword', {'type': 'opt', 'event': ['CursorHold', 'CursorMoved']}
Pack 'itchyny/vim-highlighturl', {'type': 'opt', 'event': 'CursorHold'}
Pack 'itchyny/vim-parenmatch', {'type': 'opt', 'event': 'CursorHold'}
Pack 'ntpeters/vim-better-whitespace', {'type': 'opt', 'event': 'CursorHold'}
Pack 'tyru/caw.vim', {'type': 'opt', 'event': 'CursorMoved'}
Pack 'unblevable/quick-scope', {'type': 'opt', 'event': 'CursorHold'}
Pack 'vim-scripts/autodate.vim', {'type': 'opt', 'event': 'InsertEnter'}

けっこういろいろ、 event 指定で遅延ロードできるなぁと。 べんり。

参考

yukimemi/plugpac.vim: Thin wrapper of minpac, provides vim-plug-like experience yukimemi/dotfiles: my conf settings