Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

As I open up new files inside vim, the buffer index seems to skip over arbitrary indices. I switch between buffers using b<buffer-index>, so it helps to have sequential indices for sanity/OCD sake. After a while, I just exit vim and load up the files I'm currently working on via CL and it orders them sequentially, but this is a pain when you have multiple sub-directory paths.

Can I reset the sequence or something?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

No, not without restarting Vim. There are a number of reasons why they cannot be reset, some of them internal, some having to do with avoiding surprises with Vim scripts that store buffer numbers.

Are you aware that you can do ":buffer partial buffer name" to jump to another buffer, as long as the string you supply is unique?

share|improve this answer
    
Ah! Thanks for the tip, I didn't know :buffer worked with partial names. –  leo Dec 27 '11 at 20:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.