Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
150 lines (133 sloc) 3.84 KB
set nocompatible
scriptencoding utf-8
set number
set t_Co=256
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set incsearch
set hlsearch
set showmatch
set ignorecase
set smartcase
set list
set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_
"in case we need to use gruvbox without 256 color script
"set termguicolors
if &term =~ '256color'
" disable Background Color Erase (BCE) so that color schemes
" render properly when inside 256-color tmux and GNU screen.
" see also http://snk.tuxfamily.org/log/vim-256color-bce.html
set t_ut=
endif
"Vundle Stuff
filetype off "Required for Vundle
set rtp+=~/.vim/vundle/
call vundle#begin()
"let $GIT_SSL_NO_VERIFY='true' "required in case of some RHEL boxes
"FZF Homebrew RTP
set rtp+=/usr/local/opt/fzf
let g:airline#extensions#tabline#enabled=1
"let g:airline#extensions#tabline#show_tabs=0
let g:airline#extensions#tabline#show_buffers=0
let g:airline#extensions#tabline#show_splits=0
"let g:airline_skip_empty_sections=1
let g:airline_powerline_fonts=1
let g:airline#extensions#tmuxline#enabled=0
"Not needed if colorscheme is also solarized
"let g:airline_theme='solarized'
"Good syntastic defaults
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
"Use ag if available, required in case of some RHEL boxes
"if executable('ag')
"let g:ackprg = 'ag --vimgrep'
"endif
"Ignore node_modules etc. in CtrlP
let g:ctrlp_custom_ignore = '\v[\/](node_modules)|(\.(swp|git))$'
"Vundle Plugins
"Git Repos
Plugin 'gmarik/vundle'
Plugin 'ctrlpvim/ctrlp.vim'
"Plugin 'wincent/Command-T'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
Plugin 'godlygeek/tabular'
Plugin 'Raimondi/delimitMate'
Plugin 'majutsushi/tagbar'
Plugin 'tpope/vim-surround'
Plugin 'myusuf3/numbers.vim'
Plugin 'lukaszkorecki/workflowish'
Plugin 'pangloss/vim-javascript'
Plugin 'mattn/emmet-vim'
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
Plugin 'scrooloose/syntastic'
Plugin 'luochen1990/rainbow'
Plugin 'Yggdroot/indentLine'
Plugin 'kshenoy/vim-signature'
Plugin 'valloric/youcompleteme'
Plugin 'idanarye/vim-smile'
Plugin 'metakirby5/codi.vim'
Plugin 'mbbill/undotree'
Plugin 'edkolev/tmuxline.vim'
Plugin 'mileszs/ack.vim'
Plugin 'junegunn/fzf.vim'
"Themes
Plugin 'morhetz/gruvbox'
Plugin 'altercation/vim-colors-solarized'
Plugin 'chriskempson/tomorrow-theme', {'rtp': 'vim/'}
"Vim Scripts
Plugin 'bufexplorer.zip'
Plugin 'matchit.zip'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
set ls=2
set backspace=indent,eol,start
set vb t_vb=
syntax on
let mapleader=','
nmap <leader>l :set list!<CR>
nnoremap <silent> <CR> :noh<CR><CR>
nnoremap <silent> <leader>tt :TagbarToggle<CR>
nnoremap <silent> <leader>il :IndentLinesToggle<CR>:LeadingSpaceToggle<CR>
nmap <c-b> :CtrlPBuffer<CR>
nnoremap <Leader>a :Tabularize /
vnoremap <Leader>a :Tabularize /
nnoremap <Leader>u :UndotreeToggle<CR>
set background=light
colorscheme solarized
"let g:gruvbox_contrast_light='soft'
set guifont=Inconsolata\ for\ Powerline:h16
highlight Comment cterm=italic
"let g:indentLine_char="│"
"let g:indentLine_leadingSpaceEnabled=1
"let g:indentLine_faster=1
let g:indentLine_leadingSpaceChar='·'
let g:indentLine_enabled=0
let g:rainbow_active=1
let g:undotree_SetFocusWhenToggle=1
if has('cmdline_info')
set ruler
set rulerformat=%30(%=\:b%n%y%m%r%w\ %l,%c%V\ %P%)
set showcmd
endif
if has('statusline')
set laststatus=2
set statusline=%<%f\
set statusline+=%w%h%m%r
set statusline+=\ [%{&ff}/%Y]
set statusline+=\ [%{getcwd()}]
set statusline+=%=%-14.(%l,%c%V%)\ %p%%
endif
set showmode
set cursorline
"set colorcolumn=85