summaryrefslogtreecommitdiff
path: root/.exrc
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-07-19 17:26:10 +0300
committerMichael S. Tsirkin <mst@redhat.com>2012-09-07 09:02:44 +0300
commit692e587fc61fd32d755234d187b4f082e28c3993 (patch)
treece5ff0dd761eeda8856fa1d347d907de7769e2fb /.exrc
parent6e4c0d1f03d6ab407509c32fab7cb4b8230f57ff (diff)
downloadqemu-692e587fc61fd32d755234d187b4f082e28c3993.tar.gz
qemu: add .exrc
I've been using this to get correct indenting with vim in qemu for a while, but it's a bit easier if we put the settings in the central place. Note that 1. you still need to enable 'exrc' and 'secure' options in your vimrc for these settings to take effect. 2. you can create a .vimrc file if 'exrc' is on but there's need to bypass this configuration. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to '.exrc')
-rw-r--r--.exrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/.exrc b/.exrc
new file mode 100644
index 0000000000..37755ede83
--- /dev/null
+++ b/.exrc
@@ -0,0 +1,7 @@
+"VIM settings to match QEMU coding style. They are activated by adding the
+"following settings (without the " symbol) as last two lines in $HOME/.vimrc:
+"set secure
+"set exrc
+set expandtab
+set shiftwidth=4
+set smarttab