Monday, October 4, 2010

Renumber all buffers

I use minibufexpl.vim all the time which gives me a listing of all
buffers and their respective numbers on screen all the time. This makes
it very convenient to switch to other buffers by their number. But since I'm
usually in the same vim session for days on end my buffer numbers tend
to get big. What would be the simplest way to renumber all buffers.

So that my this buffer listing:

1 h "urls.py" line 23
4 h "presajt/forms.py" line 164
7 h "presajt/views.py" line 43
9 h-+ "NERD_tree_1" line 22
10 h "settings.py" line 87
34 h "templates/homepage.html" line 18
36 h "~/repos/conf/mutt/muttrc" line 84
38 h "~/repos/conf/mutt/colors" line 4
39 h "/tmp/deploy.py" line 1
41 %a "fabfile.py" line 1

Would look like this

1 h "urls.py" line 23
2 h "presajt/forms.py" line 164
3 h "presajt/views.py" line 43
4 h-+ "NERD_tree_1" line 22
5 h "settings.py" line 87
6 h "templates/homepage.html" line 18
7 h "~/repos/conf/mutt/muttrc" line 84
8 h "~/repos/conf/mutt/colors" line 4
9 h "/tmp/deploy.py" line 1
10 %a "fabfile.py" line 1


oivvio

--
http://pipedreams.polite.se/about/


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: