Update vim conf.

This commit is contained in:
Jeff Lance 2018-06-27 18:34:11 +02:00
parent 29edb31976
commit e1bdc13269
3 changed files with 2525 additions and 3 deletions

2509
vim/autoload/plug.vim Normal file

File diff suppressed because it is too large Load Diff

11
vim/install Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
echo "Updating/cleaning Vim plugins:"
# Thanks for greywh in #vim for this tip
vim -E -s <<-EOF
:source ~/.vimrc
:PlugInstall
:PlugClean
:qa
EOF

View File

@ -52,9 +52,11 @@ cnoremap w!! w !sudo tee > /dev/null %
" \_/ |___|_| |_| |_| |_____\___/ \____| " \_/ |___|_| |_| |_| |_____\___/ \____|
" "
""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""
" Load vim-plug " Install vim-plug if we don't already have it
if empty(glob("./vim/autoload/plug.vim")) if empty(glob('~/.vim/autoload/plug.vim'))
execute '!curl -fLo ./vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim' silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source ~/.vimrc
endif endif
" Specify a directory for plugins " Specify a directory for plugins