In the last week, I've learned a few more gvim commands to make me more productive. There are so many damned commands, I wonder if anyone actually knows all of them.
Anyway, the new ones I learned were the ">" and "<" keys to indent or unindent a block of highlighted code. I also learned that you can do code folding and unfolding with zf and zo, respectively. Not the prettiest, but cool.
Indenting in Vim (Score:1)
I kind of like Vim's indenting, although I also find it useful to use perltidy as a pipe, to really clean things up properly.
Useful commands:
Actually, the commands beginning with '=' there are only in Vim 6.1 and higher. I have this in my ~/.vimrc to enabl
Re:Indenting in Vim (Score:2)
I also like to justify my (non-code) text fairly often, so I do plenty of :!fmt on those blocks.
--
xoa
Re:Indenting in Vim (Score:1)
I tend to use gqap rather than fmt these days. fmt is a little inflexible...
Of course, if I were a real fanatic, I'd be using DCONWAY's Text::AutoFormat [cpan.org].
-Dom
Re:Indenting in Vim (Score:2)
I didn't know about :gqap. Thanks for the pointer.
Of course, if I were a real fanatic, I'd be using DCONWAY's Text::AutoFormat.
Don't think I didn't consider it... :-)
--
xoa