]> code.delx.au - dotfiles/blobdiff - .vim/indent.vim
xmonad: default to tabbed layout
[dotfiles] / .vim / indent.vim
index eeb91b0609a265247265a19cb58bb046727f85ed..1219c79d1afca4b8988c541f6d4521f8e10788cb 100644 (file)
@@ -4,26 +4,27 @@
 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