vim-buftabline icon indicating copy to clipboard operation
vim-buftabline copied to clipboard

Allow separator character to be specified

Open Asheq opened this issue 8 years ago • 3 comments

Not all fonts contain the Unicode character U+23B8 (LEFT VERTICAL BOX LINE) which is currently hard-coded as the separator between tabs. For such a case, it would be nice to allow the users to specify an alternative. For instance, I'm using U+258C (LEFT HALF BLOCK) instead.

Usage

let g:buftabline_separators = 1
let g:buftabline_separators_char = '▌'

or

let g:buftabline_separators = 1
let g:buftabline_separators_char = nr2char(0x258C)

Result image

Asheq avatar Jul 06 '16 19:07 Asheq

See also #16. I guess I see your point though. Hmm.

ap avatar Jul 11 '16 07:07 ap

Hi @ap, I have a very similar problem: I am using vim-buftabline in a Vim inside tmux. On my terminal, the pipe character used by vim-buftabline has a smaller width than other characters. In the effect, not only the buftabline looks bad, but even different tmux panes are shifted.

It seems like this pull request would fix my problem. Could you merge it, pretty please?

rburny avatar Jan 20 '17 22:01 rburny

Hi @rburny, sorry it took me two weeks to respond.

Basically I am conflicted. I see the problems it would address and it would be an obvious improvement for a number of users… but at the same time, I am resistant to doing it because I have vague unformed ideas about overhauling the way the rendering is done, which might conflict with configuration options that are too specific to the way the rendering works right now – but anything I release, I try to continue to support. (So I am always slow to add features, by nature.)

I do agree that your use case should be covered, though. (That’s why I have not rejected the PR also.) I guess I should sit down and figure out the refactored rendering logic.

ap avatar Feb 05 '17 16:02 ap