Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Show buffer number in the buffer in the above buffer list statusline. #1149

Closed
wsdjeg opened this issue Apr 27, 2016 · 12 comments

Comments

@wsdjeg
Copy link
Contributor

wsdjeg commented Apr 27, 2016

Airline team:
thanks for all your work.this plugin make vim works better.
I need a new feature,shou buffer number in the buffer list line.By defaue if I edit more than one file.I will see buffer list line on the above of the screen.
for example

README.md >help.txt >

I want the list shown like irssi's channel

1:README.md >2:help.txt>

the first number is the buffer number.

will this feature be added to airline?

thanks

@chrisbra
Copy link
Member

So basically you want :let g:airline#extensions#tabline#buffer_idx_mode = 1?

@wsdjeg
Copy link
Contributor Author

wsdjeg commented Apr 28, 2016

thanks,it works ,but the number is too small.
2016-04-28_443x53

can I let the list shown like this?
1: README.md > 2: init.vim >

@wsdjeg
Copy link
Contributor Author

wsdjeg commented Apr 28, 2016

and I use ctrlp open the next two files,so the buffer number is 3 and 4,buffer 2 is ctrlp buffer.so I think the number shown in the pic above is not buffer number.

@chrisbra
Copy link
Member

you can check with :ls buffer names should be the same

@wsdjeg
Copy link
Contributor Author

wsdjeg commented Apr 29, 2016

I use :buffers,and it is not same.I will have a try with :ls tonight

@wsdjeg
Copy link
Contributor Author

wsdjeg commented Apr 29, 2016

@chrisbra I use ctrlp to open the file,so the number is different with the num shown in the buffer list line.
2016-04-29_368x33
2016-04-29-19 43 05

@dragonxlwang
Copy link

see #1121

@wsdjeg
Copy link
Contributor Author

wsdjeg commented May 4, 2016

@dragonxlwang please my picture above.the buffer number in the tab line is wrong.it should be 1,3 not 1,2

@dragonxlwang
Copy link

yes, the thing you showed above is buffer "index", not buffer number, which you can check with bufnr/buffers

both #1121 and the doc address this if I understand your issue correctly.

@wsdjeg
Copy link
Contributor Author

wsdjeg commented May 4, 2016

the second pic is output of buffers.so you man bufnr will show different result?
ok will check tonight

@dragonxlwang
Copy link

No!!

buffers and bufnr shows the same thing!!

for your purpose, you DON'T want to use buffer_idx_mode.

Instead, use:
let g:airline#extensions#tabline#buffer_nr_show = 1

@wsdjeg
Copy link
Contributor Author

wsdjeg commented May 4, 2016

I see . sorry for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants