Skip to content

Instantly share code, notes, and snippets.

@songouyang
Last active November 23, 2017 04:30
Show Gist options
  • Save songouyang/a73f9c76f7860dd1c05d5107d1ff27ed to your computer and use it in GitHub Desktop.
Save songouyang/a73f9c76f7860dd1c05d5107d1ff27ed to your computer and use it in GitHub Desktop.
.vimrc
"vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'wakatime/vim-wakatime'
Plugin 'scrooloose/syntastic'
call vundle#end()
filetype plugin indent on " enables filetype detection
set number
set smartindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set fileformat=unix
set encoding=utf-8
set wrap
let python_highlight_all=1
syntax on
set cc=80
set showmatch
set hlsearch
set incsearch
set history=100
set matchtime=5
let python_highlight_all=1
au Filetype python set tabstop=4
au Filetype python set softtabstop=4
au Filetype python set shiftwidth=4
au Filetype python set textwidth=79
au Filetype python set expandtab
au Filetype python set autoindent
au Filetype python set fileformat=unix
autocmd Filetype python set foldmethod=indent
autocmd Filetype python set foldlevel=99
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment