Vundle -> Plug
This commit is contained in:
68
.vimrc
68
.vimrc
@@ -2,47 +2,43 @@ let mapleader = ","
|
|||||||
set nocompatible " be iMproved, required
|
set nocompatible " be iMproved, required
|
||||||
filetype off " required
|
filetype off " required
|
||||||
|
|
||||||
let vundle_dir="~/.vim/bundle/Vundle.vim"
|
let plug_fpath="~/.vim/autoload/plug.vim"
|
||||||
if filereadable(expand(vundle_dir) . "/README.md")
|
if filereadable(expand(plug_fpath))
|
||||||
" set the runtime path to include Vundle and initialize
|
call plug#begin()
|
||||||
let &rtp .= "," . vundle_dir
|
|
||||||
call vundle#begin()
|
|
||||||
|
|
||||||
Plugin 'VundleVim/Vundle.vim' " let Vundle manage Vundle, required
|
Plug 'scrooloose/nerdtree'
|
||||||
|
Plug 'vim-scripts/c.vim'
|
||||||
Plugin 'scrooloose/nerdtree'
|
Plug 'jeetsukumaran/vim-buffergator'
|
||||||
Plugin 'c.vim'
|
Plug 'ericcurtin/CurtineIncSw.vim'
|
||||||
Plugin 'jeetsukumaran/vim-buffergator'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plugin 'ericcurtin/CurtineIncSw.vim'
|
Plug 'tpope/vim-surround'
|
||||||
Plugin 'tpope/vim-fugitive'
|
Plug 'ctrlpvim/ctrlp.vim'
|
||||||
Plugin 'tpope/vim-surround'
|
Plug 'rhysd/vim-clang-format'
|
||||||
Plugin 'ctrlpvim/ctrlp.vim'
|
Plug 'godlygeek/tabular'
|
||||||
Plugin 'rhysd/vim-clang-format'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plugin 'godlygeek/tabular'
|
Plug 'jeetsukumaran/vim-pythonsense'
|
||||||
Plugin 'airblade/vim-gitgutter'
|
Plug 'easymotion/vim-easymotion'
|
||||||
Plugin 'jeetsukumaran/vim-pythonsense'
|
Plug 'cpiger/NeoDebug'
|
||||||
Plugin 'easymotion/vim-easymotion'
|
Plug 'ivan-krukov/vim-snakemake'
|
||||||
Plugin 'cpiger/NeoDebug'
|
Plug 'nvie/vim-flake8'
|
||||||
Plugin 'ivan-krukov/vim-snakemake'
|
Plug 'ludovicchabant/vim-gutentags'
|
||||||
Plugin 'nvie/vim-flake8'
|
Plug 'junegunn/vim-peekaboo'
|
||||||
Plugin 'ludovicchabant/vim-gutentags'
|
|
||||||
Plugin 'junegunn/vim-peekaboo'
|
|
||||||
if has('python3') && empty($VIM_DISABLE_YCM)
|
if has('python3') && empty($VIM_DISABLE_YCM)
|
||||||
Plugin 'ycm-core/YouCompleteMe'
|
Plug 'ycm-core/YouCompleteMe', { 'do': './install.py' }
|
||||||
endif
|
endif
|
||||||
Plugin 'dense-analysis/ale'
|
Plug 'dense-analysis/ale'
|
||||||
Plugin 'tpope/vim-unimpaired'
|
Plug 'tpope/vim-unimpaired'
|
||||||
Plugin 'JuliaEditorSupport/julia-vim'
|
Plug 'JuliaEditorSupport/julia-vim'
|
||||||
Plugin 'tell-k/vim-autopep8'
|
Plug 'tell-k/vim-autopep8'
|
||||||
Plugin 'jpalardy/vim-slime'
|
Plug 'jpalardy/vim-slime'
|
||||||
Plugin 'preservim/tagbar'
|
Plug 'preservim/tagbar'
|
||||||
Plugin 'wellle/context.vim'
|
Plug 'wellle/context.vim'
|
||||||
|
|
||||||
call vundle#end() " required
|
call plug#end()
|
||||||
else
|
else
|
||||||
let vundle_repo="https://github.com/VundleVim/Vundle.vim.git"
|
let plug_url="https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
||||||
echo "Vundle not installed, type :CloneVundle to clone the vundle repo and install it"
|
echo "Plug not installed, type :CurlPlug to download and install plug"
|
||||||
command! CloneVundle execute "!git clone " . vundle_repo . " " . vundle_dir | source $MYVIMRC | echo "Cloned Vundle. Do :PluginInstall"
|
command! CurlPlug execute "!curl -fLo " . plug_fpath . " --create-dirs " . plug_url | source $MYVIMRC | echo "Curled Plug. Do :PlugInstall"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set tabstop=4 " show existing tab with 4 spaces width
|
set tabstop=4 " show existing tab with 4 spaces width
|
||||||
|
|||||||
Reference in New Issue
Block a user