Enviado em 09/11/2017 - 16:35h
Prazer para todos.
" START - Setting up Vundle - the vim plugin bundler
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/Vundle.vim/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
let iCanHazVundle=0
endif
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#rc()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
if iCanHazVundle == 0
echo "Installing Bundles, please ignore key map error messages"
echo ""
:PluginInstall
endif
" END - Setting up Vundle - the vim plugin bundler
" STARTVUNDLE
" ____________________________________________________________________________
function s:StartVundle()
filetype off
call vundle#rc()
Plugin 'gmarik/vundle'
" __ GITHUB _________________________________
Plugin 'altercation/vim-colors-solarized'
Plugin 'itchyny/lightline.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
Plugin 'majutsushi/tagbar'
Plugin 'fs111/pydoc.vim'
Plugin 'scrooloose/syntastic'
Plugin 'tpope/vim-fugitive'
Plugin 'gregsexton/gitv'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
Plugin 'ascenator/L9', {'name': 'newL9'}
Plugin 'reedes/vim-thematic'
Plugin 'bling/vim-airline'
Plugin 'LucHermitte/lh-vim-lib'
Plugin 'LucHermitte/local_vimrc'
Plugin 'christoomey/vim-run-interactive'
Plugin 'jiangmiao/auto-pairs'
Plugin 'croaky/vim-colors-github'
Plugin 'kchmck/vim-coffee-script'
Plugin 'pbrisbin/vim-mkdir'
Plugin 'slim-template/vim-slim'
Plugin 'thoughtbot/vim-rspec'
Plugin 'tpope/vim-bundler'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-eunuch'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-surround'
Plugin 'vim-scripts/ctags.vim'
Plugin 'vim-scripts/matchit.zip'
Plugin 'vim-scripts/tComment'
" Syntastic checker-ek:
" c: gcc, splint
" python: flake8, pylint
" __ VIM-SCRIPTS ____________________________
Plugin 'Align',
Plugin 'EasyGrep',
Plugin 'NumUtils',
Plugin 'vis'
" __ OTHER REPOS ____________________________
" Plugin 'git://git.wincent.com/command-t.git'
" __ LOCAL REPOS ____________________________
Plugin 'file://~/.vim/bundle/vegyes'
filetype plugin indent on
endfunction
" INSTALLVUNDLE
" ____________________________________________________________________________
"
" Cloning vundle to ~/.vim/bundle/vundle
function s:InstallVundle()
let vundle_repo = 'https://github.com/gmarik/vundle.git'
let path = substitute( $HOME . '/.vim/bundle/vundle', '/', has( 'win32' ) ? '\\' : '/', 'g' )
if system( 'git --version' ) !~ '^git'
echohl WarningMsg | echomsg 'Git is not available.' | echohl None
return
endif
let install = confirm( 'Install vundle?', "&Yes\n&No", 2, 'Qusetion' )
if install == 2
return
endif
if ! isdirectory( path )
silent! if ! mkdir( path, 'p' )
echohl ErrorMsg | echomsg 'Cannot create directory (may be a regular file): ' . path | echohl None
return
endif
endif
echo 'Cloning vundle...'
if system( 'git clone "' . vundle_repo . '" "' . path . '"' ) =~ 'fatal'
echohl ErrorMsg | echomsg 'Cannot clone ' . vundle_repo . ' (' . path . ' may be not empty)' | echohl None
return
endif
call s:StartVundle()
PluginInstall
endfunction
" START / INSTALL VUNDLE
" ____________________________________________________________________________
set nocompatible
set runtimepath+=$HOME/.vim/bundle/vundle/
runtime autoload/vundle.vim
if ! exists( '*vundle#rc' )
autocmd VimEnter * call s:InstallVundle()
else
call s:StartVundle()
endif