4 ms·
I never got why this was such a huge deal for people to do. In vim it's super easy to just select a bunch of text you've pasted in, elimiate all the whitespace
by jamal-kumar 5y ago
I never got why this was such a huge deal for people to do. In vim it's super easy to just select a bunch of text you've pasted in, elimiate all the whitespace with some << commands, and then select what you need to be indented and >> it back into place. Takes like 5 minutes top even for larger amounts of text... beyond that, what are you even doing copying and pasting that much in?
That said I do like perl for many things python just isn't as elegant at and your comment about old documentation still staying fresh is pretty true
- singingfish 5y agoI was reading something about a particularly bad enterprise service bus product where I learned in the comments that everything being a global variable is OK, you just have to clean up after yourself when the job finishes. This comment strikes me as similar - here's a design decision that makes a simple task more complex, and error prone. Not that copying pasting large volumes is a good thing.
- jamal-kumar 5y agoIdk... if it's all tabs v for visual mode, select text :%s/\t/ /g boom selected text to PEP8 standard from tabs same if it's spaced otherwise evenly (Interpreter will give you a hard time if it isn't and won't execute the script, so what even is it if not that). your tabstop settings set to this should be fine for the << >> method. It's really not that hard?
- singingfish 5y agoIt's still extra shitwork that has to happen because of other's design decisions, however small.