Skip to content

Instantly share code, notes, and snippets.

@ssampang
Created June 4, 2016 08:55
Show Gist options
  • Save ssampang/4561749809c57b6d48e808f6ad7bba60 to your computer and use it in GitHub Desktop.
Save ssampang/4561749809c57b6d48e808f6ad7bba60 to your computer and use it in GitHub Desktop.
set nu
" tabs
set ts=2
set shiftwidth=2
set expandtab
set autoindent
set smartindent
set smarttab
set noerrorbells
set ignorecase smartcase
set backspace=indent,eol,start
set exrc
set nojoinspaces
set ruler
set incsearch hlsearch
set clipboard=unnamed
set cursorline
set list
set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_
set scrolloff=3
set mouse=a
syntax on
" vim-plug
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'valloric/youcompleteme'
Plug 'nanotech/jellybeans.vim'
Plug 'scrooloose/syntastic'
Plug 'tpope/vim-fugitive'
call plug#end()
" airline
let g:airline_powerline_fonts = 1 " enables powerline's special characters like the arrow
let g:airline#extensions#tabline#enabled = 1 " allows for multiple tabs to be listed on the title line
let g:airline_theme='solarized'
" jellybeans
:color jellybeans
let g:jellybeans_use_term_italics = 1
" syntastic
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 1
" disable syntastic on a per buffer basis (some work files blow it up)
function! SyntasticDisableBuffer()
let b:syntastic_skip_checks = 1
SyntasticReset
echo 'Syntastic disabled for this buffer'
endfunction
command! SyntasticDisableBuffer call SyntasticDisableBuffer()
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment