Nvim support changes

This commit is contained in:
2021-04-10 20:07:26 -07:00
parent f21157994c
commit bd28feb6b8
2 changed files with 20 additions and 9 deletions

View File

@@ -10,12 +10,20 @@
" * Launch vim and run :PluginInstall
" * To install from command line: vim +PluginInstall +qall
" Vundle Installation {{{
" Bootstrap Vundle if it's not installed
if empty(glob("~/.vim/autoload/plug.vim"))
echo "No vim-plug, getting it ..."
execute '!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
echo "Getting vim-plug ... done"
" Plug Installation {{{
" Bootstrap Plug if it's not installed
if has("nvim")
if empty(glob("~/.config/nvim/autoload/plug.vim"))
echo "No vim-plug, getting it ..."
execute '!curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
echo "Getting vim-plug ... done"
endif
else
if empty(glob("~/.vim/autoload/plug.vim"))
echo "No vim-plug, getting it ..."
execute '!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
echo "Getting vim-plug ... done"
endif
endif
" }}}