zefei / vim-wintabs

Modern buffer manager for Vim
MIT License
325 stars 25 forks source link

Add number prefix to each buffer name #29

Closed ruiheng closed 6 years ago

ruiheng commented 6 years ago

In my branch, I added number prefixes to each buffer name, begin with 1. This number is controlled by format string '%o'.

The point is that, for example, with proper key mapping, I can switch to the first buffer with key <leader>1, key <leader>0 to the 10th buffer, and I know exactly which number key to use by looking at the number prefix.

Some my considerations:

Hopefully this small enhancement can be useful to others.

zefei commented 6 years ago

Hey @ruiheng, thank you for the PR. I like the idea and your considerations, but I can't merge it for a few reasons:

I'd love to merge your PR if you can find ways to walkaround these issues. Thank you for taking time on this!

ruiheng commented 6 years ago

I didn't know vim-wintabs-powerline before.

Since I am not familiar with VimL, I may not find any workarounds in short time.

Thanks.

zefei commented 6 years ago

Closing this since it's unlikely to be mergeable in its current state. Thank you for doing this! I'll try to include index number the next time I change renderer API.