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.
This commit is contained in:
parent
99f6f36b69
commit
537a5321aa
2
plug.vim
2
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('<sfile>:p')
|
||||
let s:me = resolve(expand('<sfile>:p'))
|
||||
let s:base_spec = { 'branch': 'master', 'frozen': 0 }
|
||||
let s:TYPE = {
|
||||
\ 'string': type(''),
|
||||
|
|
Loading…
Reference in New Issue
Block a user