neovim/runtime/plugin/rplugin.vim
2016-03-10 10:34:57 -05:00

17 lines
448 B
VimL

if exists('g:loaded_remote_plugins')
finish
endif
let g:loaded_remote_plugins = 1
command! UpdateRemotePlugins call remote#host#UpdateRemotePlugins()
augroup nvim-rplugin
autocmd!
autocmd FuncUndefined *
\ call remote#host#LoadRemotePluginsEvent(
\ 'FuncUndefined', expand('<amatch>'))
autocmd CmdUndefined *
\ call remote#host#LoadRemotePluginsEvent(
\ 'CmdUndefined', expand('<amatch>'))
augroup END