]> code.delx.au - dotfiles/blob - .vim/indent.vim
Gratuitous restructuring of vim config
[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 " Automatically indent new lines after specific keywords or braces
8 set smartindent
9 " Don't jump to the start of a line when typing #
10 inoremap # X<c-h>#
11
12 " Tab stuff
13 " Size of a \t
14 set tabstop=4
15 " Delete this many space chars when pressing backspace
16 set softtabstop=4
17 set shiftwidth=4
18
19 " Use :retab to change the file to entirely space indents
20 " Use :retab! to change the file to entirely tab indents
21