]> code.delx.au - dotfiles/blob - .vim/indent.vim
screenrc rewrite
[dotfiles] / .vim / indent.vim
1 " Indentation
2
3 " Automatically continue indentation across lines
4 set autoindent
5 " Keep indentation structure (tabs, spaces, etc) when autoindenting.
6 set copyindent
7
8 " Expand tab to spaces
9 set expandtab
10 " Size of a \t
11 set tabstop=8
12 " Delete this many space chars when pressing backspace
13 set softtabstop=4
14 set shiftwidth=4
15
16 " < and > will hit indentation levels instead of adding/subtracting shiftwidth
17 set shiftround
18
19 " Single indent for line continuations
20 set cinoptions=+1s
21 set cinoptions=(1s
22 let g:pyindent_open_paren = &sw
23 let g:pyindent_continue = &sw
24 let g:vim_indent_cont = &sw
25
26 " Single space after full stop
27 set nojoinspaces
28
29 " Use :retab to change the file to entirely space indents
30 " Use :retab! to change the file to entirely tab indents
31