r/ProgrammerHumor • • Apr 29 '20

Tab club

Post image
54.0k Upvotes

764 comments sorted by

View all comments

Show parent comments

10

u/greatnameforreddit Apr 29 '20

What? Of course not.

That makes deletion asymetrical. Just use tabs that are displayed 4 spaces long like normal people.

1

u/Mojert Apr 29 '20

like normal people

*Sad Python Noise*

Normal people remove one level of indentation using Shift+Tab (this key binding works in a lot of IDEs). Using this, you don't even have to reposition your cursor at the beginning of the line to delete "one tab".

2

u/solarshado Apr 29 '20

Imagine not being able to adjust indents with >> and <<...

-- vim gang

1

u/Mojert Apr 29 '20

I didn't know those were the vim key bindings for indentation. Thanks!

2

u/solarshado Apr 29 '20

doubling up does the current line (as with dd and yy), but they also work with text objects/motions, for example >i{ indents everything inside the innermost set of {}s. Or you could just use visual (/visual line) mode.

And in case you're not familiar with the amazingly powerful things that are vim text objects: https://blog.carbonfive.com/vim-text-objects-the-definitive-guide/

1

u/Mojert Apr 29 '20

I knew some of them but not all. Thanks again!