Alex Rivera | Logout

Vim: Changing Buffer Numbers

Asked 2010-12-28T10:16:03.563
17

I usually like to use buffer numbers to go to buffers quickly. Unfortunately, after many searches, opening some files, etc., the buffer numbers get crazy:

  1. Is there anyway to assign buffer numbers manually?
  2. Is there anyway to restart buffer numbering?
Edit
Report

1 Answer

10

It is not possible to assign buffer numbers manually, or reassign them for that matter. The only way to restart buffer numbering is to restart vim. You might be interested in the SelectBuf script.

answered 2010-12-28T10:28:37.187

Your Answer