Skip to main content

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.

Comments

Cornelius said…
:copen is useful.
Cornelius said…
so :cw is for :copen

:P

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

I think one is internal and the other shells out.