update vim-plug autoinstall and remove unused uname from vimrc
This commit is contained in:
parent
2f77a99e10
commit
cd7524e5dd
1 changed files with 4 additions and 9 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue