From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srs1O-0007m0-Sp for qemu-devel@nongnu.org; Thu, 19 Jul 2012 10:48:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srs1I-0004I2-Ru for qemu-devel@nongnu.org; Thu, 19 Jul 2012 10:48:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srs1I-0004Ht-Im for qemu-devel@nongnu.org; Thu, 19 Jul 2012 10:48:00 -0400 Date: Thu, 19 Jul 2012 17:48:32 +0300 From: "Michael S. Tsirkin" Message-ID: <20120719144831.GA14638@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCHv2] qemu: add .exrc List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Anthony Liguori Cc: "Michael S. Tsirkin" 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 --- Changes from v1: added some comments explaining usage .exrc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .exrc diff --git a/.exrc b/.exrc new file mode 100644 index 0000000..37755ed --- /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 -- MST