Skip to content

Instantly share code, notes, and snippets.

@rafaelnp
Created June 12, 2020 12:50
Show Gist options
  • Save rafaelnp/9b5f779788df98a84fa28508c09dc875 to your computer and use it in GitHub Desktop.
Save rafaelnp/9b5f779788df98a84fa28508c09dc875 to your computer and use it in GitHub Desktop.
Neovim auto-install vim-plug
" auto-install vim-plug
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment