Use vim-plug.

This commit is contained in:
Gea-Suan Lin
2020-05-07 14:12:40 +08:00
parent 676d7b241a
commit f4fbf72e17
5 changed files with 2689 additions and 36 deletions

3
.gitmodules vendored
View File

@@ -1,3 +0,0 @@
[submodule ".vim/bundle/vundle"]
path = .vim/bundle/vundle
url = https://github.com/gmarik/vundle.git

2665
.vim/autoload/plug.vim Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -56,29 +56,27 @@ vnoremap <silent> p p`]
vnoremap <silent> y y`] vnoremap <silent> y y`]
" "
filetype off filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" "
Bundle "gmarik/vundle" call plug#begin('~/.vim/plugged')
" Bundle 'bonsaiben/bootstrap-snippets'
Bundle "bonsaiben/bootstrap-snippets" Bundle 'ctrlpvim/ctrlp.vim'
Bundle "ctrlpvim/ctrlp.vim" Bundle 'garbas/vim-snipmate'
Bundle "garbas/vim-snipmate" Bundle 'godlygeek/csapprox'
Bundle "godlygeek/csapprox" Bundle 'gregsexton/gitv'
Bundle "gregsexton/gitv" Bundle 'honza/vim-snippets'
Bundle "honza/vim-snippets" Bundle 'itchyny/lightline.vim'
Bundle "itchyny/lightline.vim" Bundle 'majutsushi/tagbar'
Bundle "majutsushi/tagbar" Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle "MarcWeber/vim-addon-mw-utils" Bundle 'motus/pig.vim'
Bundle "motus/pig.vim" Bundle 'nathanaelkane/vim-indent-guides'
Bundle "nathanaelkane/vim-indent-guides" Bundle 'scrooloose/nerdtree'
Bundle "scrooloose/nerdtree" Bundle 'sheerun/vim-polyglot'
Bundle "sheerun/vim-polyglot" Bundle 'spf13/PIV'
Bundle "spf13/PIV" Bundle 'terryma/vim-expand-region'
Bundle "terryma/vim-expand-region" Bundle 'tomtom/tlib_vim'
Bundle "tomtom/tlib_vim" Bundle 'tpope/vim-fugitive'
Bundle "tpope/vim-fugitive" Bundle 'tpope/vim-surround'
Bundle "tpope/vim-surround" call plug#end()
" "
filetype plugin indent on filetype plugin indent on
let g:ctrlp_use_caching = 0 let g:ctrlp_use_caching = 0

View File

@@ -51,13 +51,7 @@ mkdir -p ~/.config || true
ln -fs ../.vim ~/.config/nvim ln -fs ../.vim ~/.config/nvim
# vim # vim
if [ -e ~/.vim ]; then mkdir -p ~/.vim/ || true
rsync -a ${BASEDIR}/.vim/ ~/.vim/ rsync -a ${BASEDIR}/.vim/ ~/.vim/
chmod 700 ~/.vim/ chmod 700 ~/.vim/
vim +BundleClean\! +BundleUpdate +q +q vim +PlugUpdate +PlugClean\! +q +q
else
mkdir -p ~/.vim/
rsync -a ${BASEDIR}/.vim/ ~/.vim/
chmod 700 ~/.vim/
vim +BundleClean\! +BundleInstall +q +q
fi