diff options
author | Tharre <tharre3@gmail.com> | 2015-07-07 01:37:16 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2016-10-07 20:11:05 +0000 |
commit | 3dcd7f544f57398587e44cfb36f299409096a0da (patch) | |
tree | 84dee2f40a310784a92c1e4487fb63de85f34d7a | |
parent | 28c95c8e9056bd81fd583f9b761abd1bd6f7a8bd (diff) | |
download | dotfiles-3dcd7f544f57398587e44cfb36f299409096a0da.tar.gz dotfiles-3dcd7f544f57398587e44cfb36f299409096a0da.tar.xz dotfiles-3dcd7f544f57398587e44cfb36f299409096a0da.zip |
Improve plugin situation
-rw-r--r-- | shell/_vimrc | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/shell/_vimrc b/shell/_vimrc index ba04334..c3eb5c3 100644 --- a/shell/_vimrc +++ b/shell/_vimrc @@ -7,8 +7,12 @@ let mapleader="," " set leader early as otherwise it wouldn't work " ----- NeoBundle ----- +" Note: Skip initialization for vim-tiny or vim-small. +if 0 | endif + +let first_run=0 if !filereadable(expand('~/.vim/bundle/neobundle.vim/README.md')) - " if vundle isn't currently installed + let first_run=1 silent !git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim endif @@ -17,15 +21,13 @@ if has('vim_starting') set nocompatible " Be iMproved endif - set runtimepath+=/home/xramses/.vim/bundle/neobundle.vim/ + set runtimepath+=~/.vim/bundle/neobundle.vim/ endif -call neobundle#begin(expand('/home/xramses/.vim/bundle')) +call neobundle#begin(expand('~/.vim/bundle/')) -" Let NeoBundle manage NeoBundle NeoBundleFetch 'Shougo/neobundle.vim' -" Add or remove your Bundles here: NeoBundle 'Shougo/vimproc.vim', { \ 'build' : { \ 'windows' : 'tools\\update-dll-mingw', @@ -43,21 +45,26 @@ NeoBundle 'bling/vim-airline' NeoBundle 'scrooloose/syntastic' NeoBundle 'scrooloose/nerdcommenter' NeoBundle 'tpope/vim-surround' -"NeoBundle 'msanders/snipmate.vim' NeoBundle 'davidhalter/jedi-vim' NeoBundle 'wting/rust.vim' NeoBundle 'ledger/vim-ledger' +NeoBundle 'junegunn/vim-easy-align' +"NeoBundle 'msanders/snipmate.vim' "NeoBundle 'godlygeek/tabular' "NeoBundle 'plasticboy/vim-markdown' -NeoBundle 'junegunn/vim-easy-align' + +" Disable plugins for very large files +NeoBundleLazy 'vim-scripts/LargeFile' call neobundle#end() filetype plugin indent on -" If there are uninstalled bundles found on startup, -" this will conveniently prompt you to install them. -NeoBundleCheck +if first_run + NeoBundleInstall +else + NeoBundleCheck +endif " ----- general settings ----- set encoding=utf-8 |