diff options
-rw-r--r-- | runtime/autoload/remote/host.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim index 54a8bb3c41..e81aa81665 100644 --- a/runtime/autoload/remote/host.vim +++ b/runtime/autoload/remote/host.vim @@ -121,6 +121,11 @@ function! s:RegistrationCommands(host) call remote#host#RegisterClone(host_id, a:host) let pattern = s:plugin_patterns[a:host] let paths = globpath(&rtp, 'rplugin/'.a:host.'/'.pattern, 0, 1) + if len(paths) < 1 + echom "Could not find any plugins when attempting to register plugin " + \ ."commands. See :he remote-plugin" + return [] + endif for path in paths call remote#host#RegisterPlugin(host_id, path, []) endfor |