summaryrefslogtreecommitdiffstats
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 11:22:36 -0700
commit7c492d65bc07188b2e6b2a1a5b369d852b2f2fa6 (patch)
tree15cb9edb6ac0d06cfabc4a77d54f551a4469b53c
parent97f5b41e5cc778239ab1b4d7a20ae3c47a80bbb0 (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>
-rw-r--r--.vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..54e9584
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,2 @@
+autocmd BufEnter,BufNew *.c set ts=4 sw=4 noexpandtab
+autocmd BufEnter,BufNew *.h set ts=4 sw=4 noexpandtab