]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vimrc: fix indentation logic for our docbook xml files
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Apr 2016 13:06:28 +0000 (15:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Apr 2016 10:23:34 +0000 (12:23 +0200)
Make sure TAB results in 2ch indenting as we commonly use for our docbook XML
files.

.vimrc

diff --git a/.vimrc b/.vimrc
index 7b436bd3776950d12af3163a24be516c4e2a8047..284bf88494c574f0aefb4f76650b5a1320af4489 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -16,5 +16,5 @@ set shiftwidth=8
 set expandtab
 set makeprg=GCC_COLORS=\ make
 set tw=79
-au FileType xml set tw=119
+au BufRead,BufNewFile *.xml set tw=119 shiftwidth=2 smarttab
 au FileType c set tw=119