Wednesday, May 23, 2007

Vim: More Tips

If you've been following along with all my ramblings about Vim, you may enjoy this other guy's rambling about Vim. I learned:
  Re-indenting:
==
Re-indent current line.
<motion>=
Re-indent block.
Grepping in vim:
:grep -r vim .
:cn Display the next grep finding.
:cp Display the previous grep finding.
:cw Open the QuickFix window to get an overview over the results.
^d
Use this instead of tab completion to see all the options.
:set spell
Turn on the spell checker.

3 comments:

Cornelius said...

:copen is useful.

Cornelius said...

so :cw is for :copen

:P

what's the difference between :vimgrep and :grep ? :O

Shannon -jj Behrens said...

:vimgrep vs. :grep

I think one is internal and the other shells out.