3

I just successfully installed vim-airline, and all the required stuff. I've downloaded the powerline-fonts, and successfully installed them. The only problem right now I'm having is: On right side of the bar from my angle, it shows some spacing between arrows and boxes like in the following picture:

Spacing between arrow and box on right side

I've applied a lot of techniques to make it look properly, but nothing makes it work.

Note: No matter, how wide or short the screen is - the spacing remains consistent.

8
  • have you tried changing the font-size ? also you can try with this font that works great : github.com/larsenwork/monoid
    – nobe4
    Commented Aug 19, 2015 at 8:54
  • Yes, I've. Changing the font-size makes the space out, but at the same time, it also makes the arrow (much more)bigger than the box, and it looks awkward.
    – Arslan Ali
    Commented Aug 19, 2015 at 8:58
  • You should see github.com/bling/vim-airline/issues/702
    – nobe4
    Commented Aug 19, 2015 at 9:02
  • Installing Monoid didn't help.
    – Arslan Ali
    Commented Aug 19, 2015 at 9:04
  • No, neither one helped.
    – Arslan Ali
    Commented Aug 19, 2015 at 9:09

2 Answers 2

2

You should try adding the following line in your vimrc :

let g:airline#extensions#whitespace#mixed_indent_algo = 1

Also, some fonts may work better than others. e.g. :

1
  • I'm not sure why this is the accepted answer. The first suggestion doesn't change the padding on the right-hand side at all and most of us chose the font we did because we like it better than all of the other fonts. I'll fork vim-airline and see if I can find the source. Commented Jun 27, 2018 at 3:11
1

I had exactly the same problem: triangles fit perfectly on the left side, but had a small gap on the right side. A workaround that fixed the issue for me was to slightly adjust terminal emulator font size from 8 to 8.1. Now both sides line up exactly and the increase in font size is not noticeable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.