Nmap Development mailing list archives

Re: Indenting style, modelines


From: David Fifield <david () bamsoftware com>
Date: Tue, 17 Feb 2009 10:35:26 -0700

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?

David Fifield

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: