From f1e16ebaf80ad97a5e0285511f2eae13f2aee5f4 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Tue, 21 Oct 2014 18:41:12 -0700 Subject: [PATCH] Fix up vim settings for python. --- vim/ftplugin/python.vim | 6 ++++++ vimrc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim index 401bcc5..849bf46 100644 --- a/vim/ftplugin/python.vim +++ b/vim/ftplugin/python.vim @@ -1 +1,7 @@ nnoremap :%!autopep8 - +setlocal tabstop=4 +setlocal softtabstop=4 +setlocal shiftwidth=4 +setlocal textwidth=80 +setlocal smarttab +setlocal expandtab diff --git a/vimrc b/vimrc index 167ea32..8d1bd03 100644 --- a/vimrc +++ b/vimrc @@ -104,7 +104,7 @@ endfunction " Options for syntastic 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 nnoremap :SyntasticCheck :Errors