[Chicago] Emacs/vim whitespace question

Jonathan Hayward christos.jonathan.hayward at gmail.com
Thu Mar 18 05:20:29 CET 2010


In vim you want a few settings in your vimrc to handle Python and in
particular to avoid annoying behavior. Turning on autoindent alone leaves
you subject to a nasty surprise re: significant whitespace. If you edit
existing code indented in one part to eight spaces, and append a line below
it, vim's default behavior at least in the past has been to indent an
"equivalent" equal to one tab, resulting in the Python compiler complaining
about not matching a previous indent.

Are there any inappropriate behaviors like this in an unconfigured emacs,
and if so, could I have appropriate settings material to say "Be nice to
Python"?

-- 
→ Jonathan Hayward, a Senior Web Developer who cares deeply about usability
→ www.linkedin.com/in/jonathanhayward • jonathan.hayward at pobox.com
→ Ajax, CGI, CMS, CSS, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl, PHP,
Python, SQL, UI, Unix, Usability, UX, XHTML, XML
→ With a good interest in the human side of computing and making software
and websites a joy to use
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20100317/de0355b6/attachment.html>


More information about the Chicago mailing list