From 537a5321aaaddaff10ef49d5c82111de4032e4b6 Mon Sep 17 00:00:00 2001 From: Scott Stevenson Date: Thu, 4 Sep 2014 10:48:31 +0000 Subject: [PATCH] Resolve symlinks in path to plug.vim If `plug.vim` is a symbolic link, `PlugUpgrade` will now download the latest version to the resolved path rather than overwriting the link. --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 5aef8f5..f54e2c5 100644 --- a/plug.vim +++ b/plug.vim @@ -72,7 +72,7 @@ let s:plug_source = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/ let s:plug_buf = get(s:, 'plug_buf', -1) let s:mac_gui = has('gui_macvim') && has('gui_running') let s:is_win = has('win32') || has('win64') -let s:me = expand(':p') +let s:me = resolve(expand(':p')) let s:base_spec = { 'branch': 'master', 'frozen': 0 } let s:TYPE = { \ 'string': type(''),