mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-21 13:34:34 +03:00
Add a .vimrc and .editorconfig
The `.vimrc` requires the `exrc` option to be turned on, and `.editorconfig` requires https://github.com/editorconfig/editorconfig-vim apparently. Closes: #1208 Approved by: cgwalters
This commit is contained in:
parent
95bfe6b862
commit
a0588c3102
5
.editorconfig
Normal file
5
.editorconfig
Normal file
@ -0,0 +1,5 @@
|
||||
[*.[ch]]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
trim_trailing_whitespace = true
|
||||
indent_brace_style = gnu
|
12
.vimrc
Normal file
12
.vimrc
Normal file
@ -0,0 +1,12 @@
|
||||
set expandtab
|
||||
set tabstop=8
|
||||
set softtabstop=2
|
||||
set shiftwidth=2
|
||||
|
||||
" Let's try to not go longer than 92
|
||||
set textwidth=92
|
||||
autocmd BufNewFile,BufRead *.c,*.h set textwidth=92
|
||||
|
||||
" This is the same as the default minus 0{, which is really annoying otherwise
|
||||
" with our coding style.
|
||||
set cinkeys=0},0),:,0#,!^F,o,O,e
|
Loading…
Reference in New Issue
Block a user