From 5613b62224e4cf8a0088537c7f4ea883530e3cf8 Mon Sep 17 00:00:00 2001 From: Jonathan Skeate Date: Tue, 15 Sep 2015 05:36:49 -0400 Subject: [PATCH] host.vim: expand $MYVIMRC. #3342 According to the vim helpfile: > fnamemodify({fname}, {mods}) > ... > Note: Environment variables don't work in {fname}, use > expand() first then. So this causes issues if your $MYVIMRC contains environment variables (e.g. $XDG_CONFIG_HOME) --- runtime/autoload/remote/host.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/autoload/remote/host.vim b/runtime/autoload/remote/host.vim index 79dbb0ad0e..afbf136861 100644 --- a/runtime/autoload/remote/host.vim +++ b/runtime/autoload/remote/host.vim @@ -1,6 +1,6 @@ let s:hosts = {} let s:plugin_patterns = {} -let s:remote_plugins_manifest = fnamemodify($MYVIMRC, ':p:h') +let s:remote_plugins_manifest = fnamemodify(expand($MYVIMRC, 1), ':h') \.'/.'.fnamemodify($MYVIMRC, ':t').'-rplugin~'