I'd like to use a few lines somewhere in my vim window to show a list of all the files I have open, and what number they are (ie, which number I need to use to switch to them). Ideally, they would be lined up across the top of the screen, almost like tabs, to save room. I'm trying to prevent having to type :ls to get the number before I switch to a window.
Vim 7 does have tabs, you can use these instead of buffers. To open a file in a new tab use
:tabp go forwards and backwards. See more info at http://vim.cybermirror.org/runtime/doc/tabpage.txt.
This is what I wanted: http://vim.sourceforge.net/scripts/script.php?script_id=159
Wow a question from almost eight years ago. I recently solved this problem and like to share it here in case others might have the same need.
A plugin in called vim-airline does the job decently.
Just download and install the plugin and put
let g:airline#extensions#tabline#enabled = 1 into your configuration file. And after reload your vim you are gonna see a list of buffer names appear on top of your screen where tab names would appear if you have multiple tabs. Note it won't screw up with your tab as the buffer list starts from the left of the screen while the tab list starts from the right.
I am still looking for ways to display the buffer list on the bottom of the screen. I really don't mind having one more lines as the statusline. But still no luck.
So vim-airline is arguably the best solution so far.