Fix up vim settings for python.

This commit is contained in:
David Tomaschik
2014-10-21 18:41:12 -07:00
parent 58bdc6b23a
commit f1e16ebaf8
2 changed files with 7 additions and 1 deletions

View File

@@ -1 +1,7 @@
nnoremap <F8> :%!autopep8 -<CR> nnoremap <F8> :%!autopep8 -<CR>
setlocal tabstop=4
setlocal softtabstop=4
setlocal shiftwidth=4
setlocal textwidth=80
setlocal smarttab
setlocal expandtab

2
vimrc
View File

@@ -104,7 +104,7 @@ endfunction
" Options for syntastic " Options for syntastic
let g:syntastic_enable_signs = 1 let g:syntastic_enable_signs = 1
let g:syntastic_auto_lock_list = 2 let g:syntastic_auto_loc_list = 2
" Have F5 run the tests and display errors " Have F5 run the tests and display errors
nnoremap <silent> <F5> :SyntasticCheck<CR> :Errors<CR> nnoremap <silent> <F5> :SyntasticCheck<CR> :Errors<CR>