[Israel.pm] Editors for Perl development
migo at homemail.com
Thu Mar 24 03:16:12 PST 2005
On 24 Mar 2005 10:00:48 +0100, Madani, Srikanth, VF-DE wrote:
> which contains the .vimrc configuration command:
> set expandtab "Convert all tabs typed into spaces"
> Any idea why would that be desired?
There are a lot of ugly reasons to do this. Some people love to hardcode
their indentation size by N spaces, for their favorite value of N. Some
people use misconfigured editors that insert random [auto-]indentation.
Some languages (like Python) refuse to work in a presence of mixed
indentation, so they decide to use 4 spaces as one-covers-all solution.
On the other hand, if all team members deliberately use exactly one char
(let's call it TAB) per one indentation level and therefore avoid all the
listed problems, then settings like expandtab are more than redundant.
perl -e 'print+chr(64+hex)for+split//,d9b815c07f9b8d1e'
More information about the Perl