Skip to content

Instantly share code, notes, and snippets.

@youknowone
Created February 12, 2018 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youknowone/276ddab071083cd02e0fb81466213c60 to your computer and use it in GitHub Desktop.
Save youknowone/276ddab071083cd02e0fb81466213c60 to your computer and use it in GitHub Desktop.
.vimrc
syn on
filetype off
set nocompatible
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'rust-lang/rust.vim'
Plugin 'rizzatti/dash.vim'
Plugin 'bling/vim-airline'
Plugin 'airblade/vim-gitgutter'
Plugin 'scrooloose/syntastic'
Plugin 'klen/python-mode'
Plugin 'alfredodeza/coveragepy.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-dispatch'
Plugin 'oblitum/rainbow'
Plugin 'jmcantrell/vim-virtualenv'
call vundle#end()
filetype plugin indent on
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:airline#extensions#tabline#enabled = 1
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
let g:syntastic_python_flake8_args='--ignore=E501'
"let g:syntastic_python_pydocstyle_args='--ignore=D400,D401,D205,D302,D203,D200,D105,D100,D103'
let g:syntastic_python_pydocstyle_args='--ignore=D400,D401,D205,D302,D203,D200,D213'
let g:syntastic_python_checkers = ['flake8', 'pydocstyle']
let g:pymode_folding = 0
let g:pymode_lint = 0
let g:pymode_rope = 0
set backspace=indent,eol,start
set tabstop=4
set shiftwidth=4
set smartindent
set autoindent
set cindent
set visualbell
set hlsearch
set fileformat=unix noeol binary
set ts=4 sw=4 sts=4 et
set background=dark
au FileType make set ts=8 sw=8 sts=8 noet
au FileType python,php set ts=4 sw=4 sts=4 et
au FileType html,css,scss,js set ts=2 sw=2 sts=2 et
au FileType ruby,strings set ts=2 sw=2 sts=2 et
au FileType rust set colorcolumn=100
set fileencodings=utf-8,euc-kr,cp949
set keymodel=startsel,stopsel
set colorcolumn=80
set cb=unnamed
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
"autocmd BufWritePre * :%s/\s\+$//e
"au FileType python autocmd BufWritePost * !flake8 --ignore=E501,E711,E712 "%"
au FileType sass,scss autocmd BufWritePost * !compass compile
vnoremap <backspace> "_d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment