Closed debajyoti1990 closed 1 year ago
Answer inspired from #837 and Vim specific :
`if empty(glob('~\vimfiles\autoload\plug.vim'))
silent ! powershell -Command " \ New-Item -Path ~\vimfiles -Name autoload -Type Directory -Force; \ Invoke-WebRequest \ -Uri 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' \ -OutFile ~\vimfiles\autoload\plug.vim \ " autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif`
For automatic installation in Unix, we have the following script:
Is there any similar script for PowerShell ?