From patchwork Thu Jul 19 14:48:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 171957 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CB14A2C0201 for ; Fri, 20 Jul 2012 00:48:18 +1000 (EST) Received: from localhost ([::1]:46293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srs1Y-0007mM-US for incoming@patchwork.ozlabs.org; Thu, 19 Jul 2012 10:48:16 -0400 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 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6JElvwF003797 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 19 Jul 2012 10:47:57 -0400 Received: from redhat.com (vpn1-6-208.ams2.redhat.com [10.36.6.208]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id q6JEltdB025640; Thu, 19 Jul 2012 10:47:56 -0400 Date: Thu, 19 Jul 2012 17:48:32 +0300 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org, Anthony Liguori Message-ID: <20120719144831.GA14638@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: "Michael S. Tsirkin" Subject: [Qemu-devel] [PATCHv2] qemu: add .exrc X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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