diff options
author | Jonathan Skeate <skeate@gmail.com> | 2015-09-15 05:36:49 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-09-14 21:59:13 -0400 |
commit | 5613b62224e4cf8a0088537c7f4ea883530e3cf8 (patch) | |
tree | 6a81497e725ec2e58637802a47ba9d762560fbba | |
parent | 6bcbb18dc88d9b84f71c09450af10f8f537a8a68 (diff) | |
download | rneovim-5613b62224e4cf8a0088537c7f4ea883530e3cf8.tar.gz rneovim-5613b62224e4cf8a0088537c7f4ea883530e3cf8.tar.bz2 rneovim-5613b62224e4cf8a0088537c7f4ea883530e3cf8.zip |
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)
-rw-r--r-- | runtime/autoload/remote/host.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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~' |