Re:Elastic Tab Stops: A Better Way to Indent and Align Code
by babo on Wednesday October 15, 2008 @05:28PM
(#333788)
I prefer tabs way more than spaces. It's faster to indenting back and better for search regexps, quite an important point for me. With Vim it's easy to retab a text if needed anyway.
Re:Elastic Tab Stops: A Better Way to Indent and Align Code
by orib on Wednesday October 15, 2008 @09:35PM
(#334025)
the indenting commands work the same way in vim with tabs or spaces -- either select a visual range and hit >, or hit >a} to indent a brace delimited block, or... well, you know the drill. the > or < compose in the same way you'd expect any other vim command to do.
Re:Elastic Tab Stops: A Better Way to Indent and Align Code
by akkartik on Wednesday October 15, 2008 @09:06PM
(#334003)
With vim you need sts. It lets you you backspace over spaces just like tabs. Now I never need tabs anymore.
I don't understand your point about search regexps.
Re:Elastic Tab Stops: A Better Way to Indent and Align Code
by babo on Thursday October 16, 2008 @07:51AM
(#334340)
Thanks for the softtabstop tip, that was a life saver as I'm forced to used spaces. For the regexps I'm used to search for tabs to distinguish lvalues but two spaces are the same for that patterns.
edit: obviously I setup tab to insert 4 spaces etc