diff --git a/.vimrc b/.vimrc index ef35616..80d6997 100644 --- a/.vimrc +++ b/.vimrc @@ -18,34 +18,35 @@ set spell set number "for when we need to do a bit of coding" -"VUNDLE STUFF -filetype off -set rtp+=~/.vim/bundle/Vundle.vim -call vundle#begin() +"INSTALL VIM-PLUG IF NOT ALREADY INSTALLED +let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' +if empty(glob(data_dir . '/autoload/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 +endif -Plugin 'VundleVim/Vundle.vim' -Plugin 'sainnhe/gruvbox-material' -Plugin 'dpelle/vim-LanguageTool' -Plugin 'ron89/thesaurus_query.vim' -Plugin 'junegunn/goyo.vim' -Plugin 'junegunn/limelight.vim' -Plugin 'reedes/vim-pencil' -Plugin 'reedes/vim-wordy' -Plugin 'preservim/vim-markdown' -Plugin 'preservim/vim-lexical' -Plugin 'preservim/vim-textobj-quote' -Plugin 'preservim/vim-textobj-sentence' -Plugin 'preservim/vim-wheel' -Plugin 'dbmrq/vim-ditto' -Plugin 'Raimondi/delimitMate' -Plugin 'vim-scripts/UniCycle' -Plugin 'preservim/nerdtree' -Plugin 'tpope/vim-fugitive' -Plugin 'neoclide/coc.nvim' -Plugin 'prettier/vim-prettier' - -call vundle#end() +call plug#begin('~/.vim/plugged') +Plug 'sainnhe/gruvbox-material' +Plug 'dpelle/vim-LanguageTool' +Plug 'ron89/thesaurus_query.vim' +Plug 'junegunn/goyo.vim' +Plug 'junegunn/limelight.vim' +Plug 'reedes/vim-pencil' +Plug 'reedes/vim-wordy' +Plug 'preservim/vim-markdown' +Plug 'preservim/vim-lexical' +Plug 'preservim/vim-textobj-quote' +Plug 'preservim/vim-textobj-sentence' +Plug 'preservim/vim-wheel' +Plug 'dbmrq/vim-ditto' +Plug 'Raimondi/delimitMate' +Plug 'vim-scripts/UniCycle' +Plug 'preservim/nerdtree' +Plug 'tpope/vim-fugitive' +Plug 'prettier/vim-prettier' +Plug 'neoclide/coc.nvim', {'branch': 'release'} +call plug#end() filetype plugin indent on let mapleader=","