blob: 8fdc3085b6758095b2893e48a74d714b20e86e75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
" SetIndent
"
" Set the size of indents and whether to use tabs or spaces.
"
" @param int size The width of the indents.
" @param bool tabs Whether to use hard tabs or not. Defaults to 1.
function SetIndent (...)
let size = get(a:, 1)
let tabs = get(a:, 2, 1)
if (tabs)
set noet
else
set et
endif
exe "set sw=" . size
exe "set ts=" . size
endfunction
|