How to switch between files in Vim?

Gavin Sinclair gsinclair at
Mon May 1 00:39:49 EDT 2006

On 5/1/06, Doug Kearns <dougkearns at> wrote:
> :help buffer
> :b N
> or
> :b filename
> I find that if there's a manageable amount, say less than 10, you can
> generally remember the buffer number. If there's more than that then I
> use the second method.

I've always thought of the :b command as rather primitive.  Thanks to
your suggestions on its usage (snipped) and the command-line mapping,
though, I'll give it another try.

In my project, I tend to have about 40 files open at once.


More information about the vim-ruby-devel mailing list