diff --git a/.exrc b/.exrc
new file mode 100644
index 0000000000000000000000000000000000000000..37755ede83a0d5b4fe22114f624a140d2bcaefff
--- /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