From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29729 invoked by alias); 11 Mar 2010 19:46:12 -0000 Received: (qmail 29708 invoked by uid 22791); 11 Mar 2010 19:46:10 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp3.ugent.be (HELO smtp3.UGent.be) (157.193.49.127) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Mar 2010 19:46:05 +0000 Received: from localhost (mcheck2.ugent.be [157.193.49.249]) by smtp3.UGent.be (Postfix) with ESMTP id CFE35147B9E; Thu, 11 Mar 2010 20:46:02 +0100 (CET) Received: from smtp3.UGent.be ([157.193.49.127]) by localhost (mcheck2.ugent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id oHRNirVfZPB7; Thu, 11 Mar 2010 20:46:02 +0100 (CET) Received: from [192.168.1.2] (243.108-241-81.adsl-dyn.isp.belgacom.be [81.241.108.243]) (Authenticated sender: jmaebe) by smtp3.UGent.be (Postfix) with ESMTPSA id E0612147B7C; Thu, 11 Mar 2010 20:46:01 +0100 (CET) Subject: Re: gdb-7.1 release preparation... Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Jonas Maebe In-Reply-To: <000301cac053$7a024c70$6e06e550$@muller@ics-cnrs.unistra.fr> Date: Thu, 11 Mar 2010 19:46:00 -0000 Cc: gdb@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20100309181021.GI15364@adacore.com> <000301cac053$7a024c70$6e06e550$@muller@ics-cnrs.unistra.fr> To: Pierre Muller X-j-chkmail-Enveloppe: 4B994879.001/81.241.108.243/243.108-241-81.adsl-dyn.isp.belgacom.be/[192.168.1.2]/ X-j-chkmail-Score: MSGID : 4B994879.001 on smtp3.UGent.be : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00075.txt.bz2 On 10 Mar 2010, at 14:13, Pierre Muller wrote: > I recently found out a nasty bug in the pascal > expression support: > http://sourceware.org/ml/gdb-patches/2010-03/msg00314.html I noticed that in that thread you were looking for GNU-style indentation in= vim. I don't remember where I found the following (googling suggests http:= //thisblog.runsfreesoftware.com/?q=3Dnode/432), but it works fine for me. J= ust add it to your .vimrc and GNU-style indentation will be enabled by defa= ult when editing C and C++ files.=20 function! GnuIndent()=20 setlocal cinoptions=3D>4,n-2,{2,^-2,:2,=3D2,g0,h2,p5,t0,+2,(0,u0,w1,m1=20 setlocal shiftwidth=3D2=20 setlocal tabstop=3D8=20 endfunction au FileType c,cpp call GnuIndent()=20 To re-indent existing code in vim, go to the first line of the code, press = V, move to the last line and then press =3D Jonas