Closed dylan-chong closed 6 years ago
It's a bit hard to tell from the screenshots, but is the "after" screenshot showing wintabs on tabline, or airline on tabline? The explanation below assumes you are showing wintabs on tabline and airline on statusline.
Wintabs can coexist with vim-airline, but it doesn't use vim-airline themes or other airline functionalities. Instead, wintabs relies on native vim colorschemes, which can be easily customized. So in this case, wintabs is just showing what's defined by base16-materia.
Looking at the airline theme you are using, the settings to mimic it is probably
highlight! link WintabsActive Visual
highlight! link WintabsInactive CursorLine
or probably better
highlight! link TabLineSel Visual
highlight! link TabLine CursorLine
See https://github.com/zefei/vim-wintabs-powerline/blob/master/README.md for details.
Ah i remember trying the highlight on the readme before by pasting into the : commandline! I didn't realise that it works when pasting into the vimrc (or when using highlight!).
Using all four of your highlight commands above looks pretty good! Just one last question, how would you change the colour? Currently looks like this:
It's a bit hard to tell from the screenshots, but is the "after" screenshot showing wintabs on tabline, or airline on tabline? The explanation below assumes you are showing wintabs on tabline and airline on statusline.
Airline is on the status line and win tabs is on the tab line
This is just to recreate the airline theme:
highlight! link Tabline Visual
call g:Base16hi('TablineSel', g:base16_gui00, g:base16_gui0D, g:base16_cterm00, g:base16_cterm0D, '', '')
Thank you! I made some small changes(I added the auto command to make it work inside vimrc and added the bold to make it look a bit nicer)
colorscheme base16-materia
" ...
call g:Base16hi(
\ 'TablineSel',
\ g:base16_gui00,
\ g:base16_gui0D,
\ g:base16_cterm00,
\ g:base16_cterm0D,
\ 'bold',
\ ''
\ )
call g:Base16hi(
\ 'Tabline',
\ g:base16_gui04,
\ g:base16_gui02,
\ g:base16_cterm04,
\ g:base16_cterm02,
\ '',
\ ''
\ )
So it looks like this now:
This is a really cool plug in by the way, I've been using it for a few weeks now and it's ready been useful for my workflow! Definitely deserves more popularity
In case anyone encounters the same problem in the future, base 16 variables can be found here for example https://github.com/chriskempson/base16-vim/blob/master/colors/base16-materia.vim and the colour variables can be seen (close enough) in this link here http://chriskempson.com/projects/base16/#styling-guidelines
Before installing this plug in:
After installing this plugin:
Semi minimal vimrc that replicates this behaviour