set autoindent
" Keep indentation structure (tabs, spaces, etc) when autoindenting.
set copyindent
-" Automatically indent new lines after specific keywords or braces
-set smartindent
-" Indent if the line starts with these words
-set cinwords+=def,class,except,try
-" Don't jump to the start of a line when typing #
-inoremap # X<c-h>#
-" Tab stuff
+" Expand tab to spaces
+set expandtab
" Size of a \t
-set tabstop=4
+set tabstop=8
" Delete this many space chars when pressing backspace
set softtabstop=4
set shiftwidth=4
-" set [no]expandtab to [not] use spaces
-"function SetTabs(n)
-" exec "set tabstop=" . a:n
-" exec "set softtabstop=" . a:n
-" exec "set shiftwidth=" . a:n
-"endfunction
+" < and > will hit indentation levels instead of adding/subtracting shiftwidth
+set shiftround
+
+" Single indent for line continuations
+set cinoptions=+1s
+set cinoptions=(1s
+let g:pyindent_open_paren = &sw
+let g:pyindent_continue = &sw
+let g:vim_indent_cont = &sw
+
+" Single space after full stop
+set nojoinspaces
" Use :retab to change the file to entirely space indents
" Use :retab! to change the file to entirely tab indents