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)
This commit is contained in:
Jonathan Skeate 2015-09-15 05:36:49 -04:00 committed by Justin M. Keyes
parent 6bcbb18dc8
commit 5613b62224

View File

@ -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~'