Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Do you know where your variables are?
 
PerlMonks  

Re^2: Best perl editor on Ubuntu/Linux

by cjb (Friar)
on Sep 09, 2011 at 13:01 UTC ( #925079=note: print w/ replies, xml ) Need Help??


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?


Comment on Re^2: Best perl editor on Ubuntu/Linux
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://925079]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2014-04-19 23:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls