update vim-plug autoinstall and remove unused uname from vimrc

This commit is contained in:
Tony Blyler 2021-05-01 19:27:24 -04:00
parent 2f77a99e10
commit cd7524e5dd

View file

@ -1,20 +1,15 @@
scriptencoding utf-8 scriptencoding utf-8
let s:uname = system("echo -n \"$(uname)\"")
if v:shell_error
let s:uname = 'Unknown'
endif
function GoPostUpdate() function GoPostUpdate()
:GoInstallBinaries :GoInstallBinaries
:GoUpdateBinaries :GoUpdateBinaries
endfunction endfunction
" automatically install vim-plug if it doesn't exist " automatically install vim-plug if it doesn't exist
if empty(glob('~/.vim/autoload/plug.vim')) let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs if empty(glob(data_dir . '/autoload/plug.vim'))
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif endif
call plug#begin($HOME.'/.nvim/plugged') call plug#begin($HOME.'/.nvim/plugged')