From 8f55dbe39bb23ebd85504ffcf1aee790bd2e8ed3 Mon Sep 17 00:00:00 2001 From: The TwilightBlood Date: Sun, 21 Nov 2021 20:46:48 -0600 Subject: [PATCH] Add VenomUpdate command --- init.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/init.vim b/init.vim index ca2d362..29016ba 100644 --- a/init.vim +++ b/init.vim @@ -58,6 +58,18 @@ Plug 'ctrlpvim/ctrlp.vim' " Context during loops and stuff Plug 'wellle/context.vim' call plug#end() + +" Install vim-plug if not found +if empty(glob('~/.vim/autoload/plug.vim')) + silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs + \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim +endif + +" Run PlugInstall if there are missing plugins +autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) + \| PlugInstall --sync | source $MYVIMRC +\| endif + " Airline config let g:airline#extensions#tabline#enabled = 1 let g:airline_powerline_fonts = 1 @@ -193,3 +205,5 @@ let g:NERDTrimTrailingWhitespace = 1 " Enable NERDCommenterToggle to check all selected lines is commented or not let g:NERDToggleCheckAllLines = 1 imap :w:!clear;python3 % + +command VenomUpdate execute "!curl -s https://raw.githubusercontent.com/Henryws/Venom/master/init.vim > ~/.config/nvim/init.vim"