From: Jonathan Lebon Date: Thu, 21 Sep 2017 19:46:17 +0000 (+0000) Subject: Add a .vimrc and .editorconfig X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~31^2~42 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a0588c310225195818ebd4689eee5c4ad2103406;p=ostree.git 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 --- diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..89742b69 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +[*.[ch]] +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true +indent_brace_style = gnu diff --git a/.vimrc b/.vimrc new file mode 100644 index 00000000..142c417a --- /dev/null +++ b/.vimrc @@ -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