http://www.perlmonks.org?node_id=925079


in reply to Re: Best perl editor on Ubuntu/Linux
in thread Best perl editor on Ubuntu/Linux

How is incorrectly encoding tabs as spaces an advantage?

I know this is probably a holy war, but I have a huge SPACE bar on my key, it's sole job is to insert spaces. I have a tiny little (by comparison) tab key which is supposed to insert tabs, anything else is surely broken behaviour?

Replies are listed 'Best First'.
Re^3: Best perl editor on Ubuntu/Linux
by jdrago999 (Pilgrim) on Sep 09, 2011 at 17:47 UTC

    I know this is probably a holy war, but I have a huge SPACE bar on my key, it's sole job is to insert spaces.

    Precisely. If I want to indent/outdent an entire block of code, I prefer to select multiple lines all at once then press the "tab" key (or shift+tab) until the indentation for that block of lines is to my liking. If this behavior were somehow tied to the space bar, that would be weird.

Re^3: Best perl editor on Ubuntu/Linux
by PrakashK (Pilgrim) on Sep 13, 2011 at 20:05 UTC
    How is incorrectly encoding tabs as spaces an advantage?

    It is not that TAB character (that is equivalent to ascii 0x09) is being encoded as spaces, but think of it as binding the function of "inserting the appropriate number of spaces" to the TAB key.

    At least in emacs, the functionality can be bound to any key that one prefers, not necessarily the TAB key.

    The advantage is that a single keypress of TAB would indent the line as needed, instead of entering the correct number of multiple space characters.