How can I set up my vim airline or vim-powerline

Hi, I am trying to install vim-powerline or new-powerline or vim-airline in Windows7 on a 64-bit version of vim But I can not get any of it working.

In vim-powerline : I get the status bar but don’t see the nice '<' delimiters: vim-powerline I installed the plugin via Vundle and updated my _vimrc

 let g:Powerline_symbols = 'fancy' set encoding=utf-8 set t_Co=256 set fillchars+=stl:\ ,stlnc:\ let g:Powerline_mode_V="V·LINE" let g:Powerline_mode_cv="V·BLOCK" let g:Powerline_mode_S="S·LINE" let g:Powerline_mode_cs="S·BLOCK" 

Any combination looks about the same. It seems like you need to install new fonts, but there is no how-to for windows,

VIM Airlines I finally found these fonts by looking at the vim-airline plugin.

Again I can’t get it right, I see some ugly '<< vim-airline-pict This is not a beautiful screenshot provided

+52
vim vim-powerline vim-airline
Sep 30 '13 at 22:56
source share
3 answers

You did not use a fixed font! A patch means manually adding six additional characters to a font in certain places in formatted fonts in UTF format. If these characters are missing, you get the ugly blocks of notes you receive. You can either fix yourself using fontforge (not easy!), Or you can just download and install a previously fixed font from this page:

https://github.com/Lokaltog/powerline-fonts

Installing a font on Windows is simple: right-click and select Install . Then you install it as usual in this _vimrc:

 set guifont=Liberation_Mono_for_Powerline:h10 

Linux.vimrc for completeness

 set guifont=Liberation\ Mono\ for\ Powerline\ 10 

Then for the airline

 let g:airline_powerline_fonts = 1 

or powerline

 let g:Powerline_symbols = 'fancy' 

Other settings are optional.

Restart and enjoy the * line.




If you fix it manually, here is a hint that I have diligently studied: After fixing a normal font, be sure to also fix bold and italic fonts ...

+58
Oct 02 '13 at
source share

I had a similar problem for vim airline, it was solved by entering the help file

 :h airline 

scroll down to the settings section or search

 /unicode symbols 

copy these three lines below into your ~ / .vimrc:

 if !exists('g:airline_symbols') let g:airline_symbols = {} endif 

then copy the unicode characters from the airline’s help to your ~ / .vimrc mine looks like this:

  if !exists('g:airline_symbols') let g:airline_symbols = {} endif " unicode symbols let g:airline_left_sep = '»' let g:airline_left_sep = '▶' let g:airline_right_sep = '«' let g:airline_right_sep = '◀' let g:airline_symbols.linenr = '␊' let g:airline_symbols.linenr = '␤' let g:airline_symbols.linenr = '¶' let g:airline_symbols.branch = '⎇' let g:airline_symbols.paste = 'ρ' let g:airline_symbols.paste = 'Þ' let g:airline_symbols.paste = '∥' let g:airline_symbols.whitespace = 'Ξ' 

start a new terminal session and start vim or mvim, as in my case, the status bar arrows for me the airline was selected.

+31
Jul 24 '14 at 15:07
source share

I met the same problem and it was fixed:

 let g:airline_powerline_fonts = 1 
+6
Jul 13 '14 at 14:36
source share



All Articles