From: Jonas Maebe <jonas.maebe@elis.ugent.be>
To: Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>
Cc: gdb@sourceware.org
Subject: Re: gdb-7.1 release preparation...
Date: Thu, 11 Mar 2010 19:46:00 -0000 [thread overview]
Message-ID: <E9B4B74D-AA35-4E35-A0E1-54E065C7AF20@elis.ugent.be> (raw)
In-Reply-To: <000301cac053$7a024c70$6e06e550$@muller@ics-cnrs.unistra.fr>
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=node/432), but it works fine for me. Just add it to your .vimrc and GNU-style indentation will be enabled by default when editing C and C++ files.
function! GnuIndent()
setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1
setlocal shiftwidth=2
setlocal tabstop=8
endfunction
au FileType c,cpp call GnuIndent()
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 =
Jonas
next prev parent reply other threads:[~2010-03-11 19:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 18:10 Joel Brobecker
2010-03-09 18:22 ` Pedro Alves
2010-03-10 13:14 ` Pierre Muller
2010-03-10 17:48 ` Joel Brobecker
2010-03-11 19:46 ` Jonas Maebe [this message]
2010-03-11 20:10 ` Sérgio Durigan Júnior
2010-03-11 21:18 ` Jan Kratochvil
2010-03-12 7:57 ` Joel Brobecker
2010-03-14 4:57 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E9B4B74D-AA35-4E35-A0E1-54E065C7AF20@elis.ugent.be \
--to=jonas.maebe@elis.ugent.be \
--cc=gdb@sourceware.org \
--cc=pierre.muller@ics-cnrs.unistra.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox