2012-09-19 13:34:47 +00:00
|
|
|
" Modeline and Notes {
|
|
|
|
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker spell:
|
|
|
|
"
|
|
|
|
" __ _ _____ _
|
|
|
|
" ___ _ __ / _/ |___ / __ __(_)_ __ ___
|
|
|
|
" / __| '_ \| |_| | |_ \ _____\ \ / /| | '_ ` _ \
|
|
|
|
" \__ \ |_) | _| |___) |_____|\ V / | | | | | | |
|
|
|
|
" |___/ .__/|_| |_|____/ \_/ |_|_| |_| |_|
|
|
|
|
" |_|
|
|
|
|
"
|
|
|
|
" This is the personal .vimrc.bundles file of Steve Francia.
|
|
|
|
" While much of it is beneficial for general use, I would
|
|
|
|
" recommend picking out the parts you want and understand.
|
|
|
|
"
|
|
|
|
" You can find me at http://spf13.com
|
|
|
|
" }
|
|
|
|
|
|
|
|
" Environment {
|
|
|
|
" Basics {
|
|
|
|
set nocompatible " must be first line
|
|
|
|
set background=dark " Assume a dark background
|
|
|
|
" }
|
|
|
|
|
|
|
|
" Windows Compatible {
|
|
|
|
" On Windows, also use '.vim' instead of 'vimfiles'; this makes synchronization
|
|
|
|
" across (heterogeneous) systems easier.
|
|
|
|
if has('win32') || has('win64')
|
|
|
|
set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/.vim/after
|
|
|
|
endif
|
|
|
|
" }
|
|
|
|
"
|
|
|
|
" Setup Bundle Support {
|
|
|
|
" The next three lines ensure that the ~/.vim/bundle/ system works
|
|
|
|
filetype off
|
|
|
|
set rtp+=~/.vim/bundle/vundle
|
|
|
|
call vundle#rc()
|
|
|
|
" }
|
|
|
|
|
|
|
|
" }
|
|
|
|
|
|
|
|
" Bundles {
|
|
|
|
" Deps
|
|
|
|
Bundle 'gmarik/vundle'
|
|
|
|
Bundle 'MarcWeber/vim-addon-mw-utils'
|
|
|
|
Bundle 'tomtom/tlib_vim'
|
|
|
|
if executable('ack-grep')
|
|
|
|
let g:ackprg="ack-grep -H --nocolor --nogroup --column"
|
|
|
|
Bundle 'mileszs/ack.vim'
|
|
|
|
elseif executable('ack')
|
|
|
|
Bundle 'mileszs/ack.vim'
|
2013-02-22 16:44:37 +00:00
|
|
|
elseif executable('ag')
|
|
|
|
Bundle 'mileszs/ack.vim'
|
|
|
|
let g:ackprg = 'ag --nogroup --nocolor --column'
|
2012-09-19 13:34:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
" Use local bundles if available {
|
|
|
|
if filereadable(expand("~/.vimrc.bundles.local"))
|
|
|
|
source ~/.vimrc.bundles.local
|
|
|
|
endif
|
|
|
|
" }
|
2012-09-27 06:12:35 +00:00
|
|
|
" Use fork bundles if available {
|
|
|
|
if filereadable(expand("~/.vimrc.bundles.fork"))
|
|
|
|
source ~/.vimrc.bundles.fork
|
|
|
|
endif
|
|
|
|
" }
|
2012-09-19 13:34:47 +00:00
|
|
|
|
|
|
|
" In your .vimrc.bundles.local file"
|
|
|
|
" list only the plugin groups you will use
|
|
|
|
if !exists('g:spf13_bundle_groups')
|
2013-04-05 04:09:35 +00:00
|
|
|
let g:spf13_bundle_groups=['general', 'neocomplcache', 'programming', 'php', 'ruby', 'python', 'go', 'twig', 'javascript', 'html', 'misc', 'scala']
|
2012-09-19 13:34:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
" To override all the included bundles, put
|
|
|
|
" g:override_spf13_bundles = 1
|
|
|
|
" in your .vimrc.bundles.local file"
|
|
|
|
if !exists("g:override_spf13_bundles")
|
|
|
|
|
|
|
|
" General
|
|
|
|
if count(g:spf13_bundle_groups, 'general')
|
|
|
|
Bundle 'scrooloose/nerdtree'
|
|
|
|
Bundle 'altercation/vim-colors-solarized'
|
|
|
|
Bundle 'spf13/vim-colors'
|
|
|
|
Bundle 'tpope/vim-surround'
|
2012-12-01 03:29:20 +00:00
|
|
|
Bundle 'spf13/vim-autoclose'
|
2012-09-19 13:34:47 +00:00
|
|
|
Bundle 'kien/ctrlp.vim'
|
|
|
|
Bundle 'vim-scripts/sessionman.vim'
|
|
|
|
Bundle 'matchit.zip'
|
2013-04-15 14:14:00 +00:00
|
|
|
if (has("python") || has("python3")) && !exists('g:spf13_use_old_powerline')
|
2013-04-10 12:50:13 +00:00
|
|
|
Bundle 'Lokaltog/powerline', {'rtp':'/powerline/bindings/vim'}
|
|
|
|
else
|
|
|
|
Bundle 'Lokaltog/vim-powerline'
|
|
|
|
endif
|
|
|
|
|
2012-09-19 13:34:47 +00:00
|
|
|
Bundle 'Lokaltog/vim-easymotion'
|
|
|
|
Bundle 'godlygeek/csapprox'
|
|
|
|
Bundle 'jistr/vim-nerdtree-tabs'
|
|
|
|
Bundle 'flazz/vim-colorschemes'
|
|
|
|
Bundle 'mbbill/undotree'
|
|
|
|
Bundle 'myusuf3/numbers.vim'
|
2012-10-06 05:19:44 +00:00
|
|
|
Bundle 'nathanaelkane/vim-indent-guides'
|
2012-12-03 21:40:09 +00:00
|
|
|
if !exists('g:spf13_no_views')
|
|
|
|
Bundle 'vim-scripts/restore_view.vim'
|
|
|
|
endif
|
2013-03-03 22:48:29 +00:00
|
|
|
Bundle 'airblade/vim-gitgutter'
|
2012-11-16 03:33:46 +00:00
|
|
|
Bundle 'tpope/vim-abolish.git'
|
2012-09-19 13:34:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
" General Programming
|
|
|
|
if count(g:spf13_bundle_groups, 'programming')
|
|
|
|
" Pick one of the checksyntax, jslint, or syntastic
|
|
|
|
Bundle 'scrooloose/syntastic'
|
|
|
|
Bundle 'tpope/vim-fugitive'
|
2012-09-28 20:07:51 +00:00
|
|
|
Bundle 'mattn/webapi-vim'
|
2012-09-27 04:57:25 +00:00
|
|
|
Bundle 'mattn/gist-vim'
|
2012-09-19 13:34:47 +00:00
|
|
|
Bundle 'scrooloose/nerdcommenter'
|
|
|
|
Bundle 'godlygeek/tabular'
|
|
|
|
if executable('ctags')
|
|
|
|
Bundle 'majutsushi/tagbar'
|
|
|
|
endif
|
2012-09-25 03:06:07 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
" Snippets & AutoComplete
|
|
|
|
if count(g:spf13_bundle_groups, 'snipmate')
|
|
|
|
Bundle 'garbas/vim-snipmate'
|
2013-04-05 18:41:16 +00:00
|
|
|
Bundle 'honza/vim-snippets'
|
|
|
|
" Source support_function.vim to support vim-snippets.
|
|
|
|
if filereadable(expand("~/.vim/bundle/vim-snippets/snippets/support_functions.vim"))
|
|
|
|
source ~/.vim/bundle/vim-snippets/snippets/support_functions.vim
|
2012-09-25 03:06:07 +00:00
|
|
|
endif
|
|
|
|
elseif count(g:spf13_bundle_groups, 'neocomplcache')
|
2012-09-19 13:34:47 +00:00
|
|
|
Bundle 'Shougo/neocomplcache'
|
2012-10-21 22:35:53 +00:00
|
|
|
Bundle 'Shougo/neosnippet'
|
2013-04-05 18:41:16 +00:00
|
|
|
Bundle 'honza/vim-snippets'
|
2012-09-19 13:34:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
" PHP
|
|
|
|
if count(g:spf13_bundle_groups, 'php')
|
|
|
|
Bundle 'spf13/PIV'
|
2013-01-24 23:14:24 +00:00
|
|
|
Bundle 'arnaud-lb/vim-php-namespace'
|
2012-09-19 13:34:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
" Python
|
|
|
|
if count(g:spf13_bundle_groups, 'python')
|
|
|
|
" Pick either python-mode or pyflakes & pydoc
|
|
|
|
Bundle 'klen/python-mode'
|
|
|
|
Bundle 'python.vim'
|
|
|
|
Bundle 'python_match.vim'
|
|
|
|
Bundle 'pythoncomplete'
|
|
|
|
endif
|
|
|
|
|
|
|
|
" Javascript
|
|
|
|
if count(g:spf13_bundle_groups, 'javascript')
|
2013-05-10 10:25:35 +00:00
|
|
|
Bundle 'elzr/vim-json'
|
2012-09-19 13:34:47 +00:00
|
|
|
Bundle 'groenewege/vim-less'
|
2012-09-27 04:57:37 +00:00
|
|
|
Bundle 'pangloss/vim-javascript'
|
|
|
|
Bundle 'briancollins/vim-jst'
|
2013-01-17 23:13:05 +00:00
|
|
|
Bundle 'kchmck/vim-coffee-script'
|
2012-09-19 13:34:47 +00:00
|
|
|
endif
|
|
|
|
|
2012-09-25 20:46:32 +00:00
|
|
|
" Java
|
|
|
|
if count(g:spf13_bundle_groups, 'scala')
|
|
|
|
Bundle 'derekwyatt/vim-scala'
|
|
|
|
Bundle 'derekwyatt/vim-sbt'
|
|
|
|
endif
|
|
|
|
|
2012-09-19 13:34:47 +00:00
|
|
|
" HTML
|
|
|
|
if count(g:spf13_bundle_groups, 'html')
|
|
|
|
Bundle 'amirh/HTML-AutoCloseTag'
|
2012-11-10 16:17:46 +00:00
|
|
|
Bundle 'hail2u/vim-css3-syntax'
|
2013-03-08 17:29:58 +00:00
|
|
|
Bundle 'tpope/vim-haml'
|
2012-09-19 13:34:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
" Ruby
|
|
|
|
if count(g:spf13_bundle_groups, 'ruby')
|
|
|
|
Bundle 'tpope/vim-rails'
|
|
|
|
let g:rubycomplete_buffer_loading = 1
|
|
|
|
"let g:rubycomplete_classes_in_global = 1
|
|
|
|
"let g:rubycomplete_rails = 1
|
|
|
|
endif
|
|
|
|
|
2013-04-05 04:09:35 +00:00
|
|
|
" Go Lang
|
2013-03-19 20:49:56 +00:00
|
|
|
if count(g:spf13_bundle_groups, 'go')
|
|
|
|
Bundle 'jnwhiteh/vim-golang'
|
2013-04-05 04:09:35 +00:00
|
|
|
Bundle 'spf13/vim-gocode'
|
2013-03-19 20:49:56 +00:00
|
|
|
endif
|
|
|
|
|
2012-09-19 13:34:47 +00:00
|
|
|
" Misc
|
|
|
|
if count(g:spf13_bundle_groups, 'misc')
|
|
|
|
Bundle 'tpope/vim-markdown'
|
|
|
|
Bundle 'spf13/vim-preview'
|
|
|
|
Bundle 'tpope/vim-cucumber'
|
2012-10-15 18:04:33 +00:00
|
|
|
Bundle 'quentindecock/vim-cucumber-align-pipes'
|
2012-09-19 13:34:47 +00:00
|
|
|
Bundle 'Puppet-Syntax-Highlighting'
|
|
|
|
endif
|
|
|
|
|
2013-03-19 20:49:56 +00:00
|
|
|
|
2012-09-19 13:34:47 +00:00
|
|
|
" Twig
|
|
|
|
if count(g:spf13_bundle_groups, 'twig')
|
|
|
|
Bundle 'beyondwords/vim-twig'
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
" }
|
|
|
|
|
|
|
|
" General {
|
|
|
|
" set autowrite " automatically write a file when leaving a modified buffer
|
|
|
|
set shortmess+=filmnrxoOtT " abbrev. of messages (avoids 'hit enter')
|
|
|
|
" }
|
|
|
|
|