diff options
| author | tradam <[email protected]> | 2021-09-18 04:17:25 -0400 |
|---|---|---|
| committer | tradam <[email protected]> | 2021-09-18 04:17:25 -0400 |
| commit | 87fc0da54ea15fcb9da0e2e173d04b90673ee728 (patch) | |
| tree | 8291ad6b4679d71e45379739efaed7c77510908c /vimrc | |
| parent | 76309605ae2897b295ca44c516b26957cd0ab366 (diff) | |
| download | Vim-Configs-87fc0da54ea15fcb9da0e2e173d04b90673ee728.tar.gz Vim-Configs-87fc0da54ea15fcb9da0e2e173d04b90673ee728.zip | |
fixed creating vimplug in correct directory
Diffstat (limited to 'vimrc')
| -rw-r--r-- | vimrc | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -143,12 +143,16 @@ set splitbelow " Install VimPlug if it isn't installed " It will also install all the plugins in this case if empty(glob(g:vimplug_dir)) - silent !curl -fLo ~/.config/vim/autoload/plug.vim --create-dirs - \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + if "source ~/.config/vim/vimrc" == $VIMINIT + silent !curl -fLo ~/.config/vim/autoload/plug.vim --create-dirs + \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + else + silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs + \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + endif autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif - " Start of adding Vim plugins if "source ~/.config/vim/vimrc" == $VIMINIT call plug#begin('~/.config/vim/plugged') |
