Nmap Development mailing list archives
[PATCH] Re: Indenting style, modelines
From: Daniel Roethlisberger <daniel () roe ch>
Date: Thu, 5 Mar 2009 10:28:19 +0100
David Fifield <david () bamsoftware com> 2009-02-17:
On Tue, Feb 17, 2009 at 12:24:02PM +0100, Daniel Roethlisberger wrote:What's the preferred indenting style: tabs + spaces or spaces only? The sources are rather inconsistent in this regard and the HACKING file says nothing about coding style.The sources are very inconsistent. If there is anything like a dominant style I think it is two-space indents, no tabs. I have this in my .vimrc: if getcwd() =~ '/home/david/nmap.*' set nocindent set expandtab set softtabstop=2 set shiftwidth=2 set copyindent endif Does something like that work for you instead of modelines?
Sure. How about the attached patch to the HACKING file for a start? If there are other style recommendations or rules, they can be added there too. -- Daniel Roethlisberger http://daniel.roe.ch/
Attachment:
HACKING-style-vimrc.diff
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Re: [nmap-svn] r12101 - ncat Fyodor (Feb 16)
- Indenting style, modelines Daniel Roethlisberger (Feb 17)
- Re: Indenting style, modelines Daniel Roethlisberger (Feb 17)
- Re: Indenting style, modelines David Fifield (Feb 17)
- [PATCH] Re: Indenting style, modelines Daniel Roethlisberger (Mar 05)
- Re: [PATCH] Re: Indenting style, modelines Fyodor (Mar 06)
- Indenting style, modelines Daniel Roethlisberger (Feb 17)
- Re: [nmap-svn] r12101 - ncat Arturo 'Buanzo' Busleiman (Feb 17)
- Re: [nmap-svn] r12101 - ncat David Fifield (Feb 17)
- Re: [nmap-svn] r12101 - ncat Arturo 'Buanzo' Busleiman (Feb 17)
- Re: [nmap-svn] r12101 - ncat David Fifield (Feb 17)