Vim's indentation changes still require a mode change three obscure keys and an enter, and vim's discoverability still sucks.
Vim's indentation changes still require a mode change three obscure keys and an enter, and vim's discoverability still sucks.
vim has had code folding for years:
:help fold.txt
If you want to indent code, < and > are your friends. (Really? Indenting code with search/replace? What are we, barbarians?)"=" is the autoindent command. Vim recognizes many languages and you can give it plugins to understand more. Use "==" to autoindent the current line. My personal favorite, "gg=G", jumps to the top of the document and autoindents the entire thing. One time at work I was gently reminded how many spaces I was supposed to indent per the company's coding standard. I quickly set the relevant editor parameters and with four keystrokes my code was compliant.
I think there's a code-folding ability but I've never used it.
Edit: actually, its pretty good for any piece of software.