summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2015-08-28 15:03:23 -0400
committerPhil Pennock <pdp@exim.org>2015-08-28 15:03:23 -0400
commit74f1526c3c63664aa7f3a59ee89a374bdf9eefca (patch)
tree6ca389a94d510850a8f411d9de60664e3a51a3cf /.editorconfig
parentbf5ffbb0aff762cd4640141a76a3afebad02ad89 (diff)
downloadexim4-74f1526c3c63664aa7f3a59ee89a374bdf9eefca.tar.gz
editorconfig philosophy, more vim hints
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig18
1 files changed, 17 insertions, 1 deletions
diff --git a/.editorconfig b/.editorconfig
index 002005172..b348a15d8 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,5 +1,13 @@
# Common text-editor configuration for Exim
# http://editorconfig.org/
+#
+# This system sets attributes of the code results of editing, not of
+# how you set up the editor to do some helpful things for you. It's
+# deliberately limited, to be non-contentious and avoid bloat.
+#
+# In this file, we'll also collect _suggestions_ for text editor configs
+# for various text editors, to better work with what passes for a common
+# style in Exim. Use, or don't use, those as you see fit.
# top-most EditorConfig file
root = true
@@ -14,9 +22,17 @@ indent_style = space
indent_size = 2
tab_width = 8
trim_trailing_whitespace = true
-# vim users try: cinoptions=>1s,{1s
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
+# vim
+# ===
+# try: set cinoptions=>1s,{1s
+#
+# More complete:
+# if has("autocmd")
+# au BufNewFile,BufRead */*exim*/src/* set noai nosmartindent expandtab cindent sw=2 cinoptions=>1s,{1s
+# endif
+