Sunday, April 26, 2009

[link] my vi first steps

Handle With Linux's my vi first steps.

I presume the guy means "vim" as he's working with Linux and Linux for past 10+ years has "vi" as a symlink to vim.

P.S. Nice trick to use :wn from a macro - to make macro to go to the next file. When macro invoked with repeat counter N, it would be applied to N first files open for editing.

Saturday, April 25, 2009

vim + grep = visual grep

Trick I'm using quite often and is worth mentioning:

vi -c ":grep -r something files_or_dirs"

That would start VIM and tell it to run grep right after that. Very convenient.