]> code.delx.au - dotfiles/blobdiff - .vim/indent.vim
xmonad: default to tabbed layout
[dotfiles] / .vim / indent.vim
index d8976ba8ff4eba8cccbe2a0f7fe3c25f60289d7a..1219c79d1afca4b8988c541f6d4521f8e10788cb 100644 (file)
@@ -5,13 +5,27 @@ set autoindent
 " Keep indentation structure (tabs, spaces, etc) when autoindenting.
 set copyindent
 
-" 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
 
+" < 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