Search code examples
vimbuffer

Vim: Changing Buffer Numbers


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?

Solution

  • 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.