Skip to content

Commit

Permalink
Add a .vimrc and .editorconfig
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jlebon authored and rh-atomic-bot committed Sep 21, 2017
1 parent 95bfe6b commit a0588c3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*.[ch]]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
indent_brace_style = gnu
12 changes: 12 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a0588c3

Please sign in to comment.