Last active
March 23, 2017 15:23
-
-
Save jaidevd/f22d902f0f6493dcc8cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Powerline stuff | |
set rtp+=/Users/jaidevd/src/powerline/powerline/bindings/vim | |
set laststatus=2 | |
execute pathogen#infect() | |
" Python stuff | |
syntax enable | |
filetype on | |
filetype plugin on | |
filetype indent on | |
set cursorline | |
set number | |
set hlsearch | |
set clipboard=unnamed | |
set textwidth=79 " lines longer than 79 columns will be broken | |
autocmd BufNewFile,BufRead *.py set cc=80 | |
autocmd BufNewFile,BufRead *.cpp set cc=80 | |
autocmd BufNewFile,BufRead *.hpp set cc=80 | |
set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns | |
set tabstop=4 " a hard TAB displays as 4 columns | |
set expandtab " insert spaces when hitting TABs | |
set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE | |
set shiftround " round indent to multiple of 'shiftwidth' | |
set autoindent " align the new line indent with the previous line | |
" TimeLapse | |
"map <leader>gt :call TimeLapse() <cr> | |
" | |
"" Wildmenu | |
"set wildmenu | |
"set wildmode=list:longest,full | |
"set wildignore=*.o,*~,*.pyc,*.pyo,*.so,*.sw*,__pycache__ | |
"let python_highlight_all=1 | |
" NerdTree | |
map <C-n> :NERDTreeToggle<CR> | |
" Tagbar | |
"map <F8> :TagbarToggle<CR> | |
"set tags+=~/tags | |
" syntastic | |
let g:syntastic_mode_map = { 'mode': 'passive', 'active_filetypes': [], 'passive_filetypes': [] } | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
" Flake8 | |
let g:flake8_show_in_gutter=1 | |
let g:flake8_show_in_file=1 | |
let g:flake8_show_quickfix=1 | |
autocmd BufWritePost *.py call Flake8() | |
" ccplint | |
" autocmd BufWritePost *.h,*.cpp,*.hpp call Cpplint() | |
" Jedi / SuperTab | |
let g:SuperTabDefaultCompletionType = "context" | |
" let g:jedi#popup_on_dot=0 | |
let g:jedi#use_tabs_not_buffers=1 | |
" GUI | |
set guifont:DejaVu\ Sans\ Mono\ for\ Powerline | |
if has('gui_running') | |
colorscheme torte | |
endif | |
" SimplyFold | |
autocmd BufWinEnter *.py setlocal foldexpr=SimpylFold(v:lnum) foldmethod=expr | |
autocmd BufWinLeave *.py setlocal foldexpr< foldmethod< | |
let g:SimpylFold_docstring_preview = 1 | |
" snippets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment