David's Mumblings

Useful vi feature

category: Computers and Tech
I discovered a few weeks ago, after years of using vi, that you could do:

:b 


and auto-complete it (with tab) to the buffer with the appropriate file name. For the longest time, I'd been using :buffers (which I'd mapped to \b) to get a numbered list of buffers, and then :b to switch to the given buffer. Being able to use the file name is far more convenient!

It makes me wonder how many other neat tricks vi has hidden away that I will eventually learn (or not). Probably very, very many... ^ TOP

Posted on 06/21/10 at 13:23:14 by dchaley (David Haley)
No comments