summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-04-11 21:59:25 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-04-16 10:25:55 -0700
commit89c7774e4f6543f02f40220b21af3f49084c4982 (patch)
tree666c65bbaff405a5f7e42acf59882b6e25f478ed /.vimrc
parent2f6b71795d8f6479eae77edc69d49519dc4b5513 (diff)
vimrc: add project startup file for vim
To avoid corrupting syntax in project we need to add an per project .vimrc to signal formatting. You must enable in user home directory .vimrc with 'set exrc' and 'set secure' lines Bug-AGL: SPEC-1387 Change-Id: I2b1162aac5ae359ded2ceabef8f62316d12e5228 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..9472ada
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,2 @@
+autocmd BufEnter,BufNew *.c set ts=4 sw=4 expandtab
+autocmd BufEnter,BufNew *.h set ts=4 sw=4 expandtab