From 70caa3b2daa87ac9c6b01ac3900d220ecef96b22 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Mon, 2 Oct 2017 14:27:19 +0000 Subject: [PATCH] tree: add vimrc and editorconfig Imported from ostree. Closes: #1029 Approved by: cgwalters --- .editorconfig | 5 +++++ .vimrc | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .editorconfig create mode 100644 .vimrc 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