Update vim conf.
This commit is contained in:
parent
29edb31976
commit
e1bdc13269
2509
vim/autoload/plug.vim
Normal file
2509
vim/autoload/plug.vim
Normal file
File diff suppressed because it is too large
Load Diff
11
vim/install
Normal file
11
vim/install
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user