I am using vim-airline to show status line at the bottom in vim editor.
Below is my .vimrc.local file.
and here is how my status line looks like.
Why the symbols are not showing properly?
You need to install fonts into your system with symbols like branching, big triangles etc. They are not standard symbols so you need to install a patched font. You can find a lot of patched fonts here: https://github.com/powerline/fonts.
Airline is telling you that on line 1 you have trailing whitespace, which is usually something you want to get rid of. So go to the line and delete it ( 1G$gelD ). It's a good feature, but you can turn it on/off with: :AirlineToggleWhitespace.
VIM Airlines (legally VIM Avia) was a Russian charter airline headquartered in Moscow based at Domodedovo International Airport. It offered international scheduled and charter operations for both passengers and cargo as well as wet lease services.
Your font does not display all unicode characters but that is not a problem.
You need to install a patched font. Instructions can be found in the official powerline documentation. Prepatched fonts can be found in the powerline-fonts repository.
Otherwise you can change the separator by editing your vimrc
, personally I have the following:
" the separator used on the left side
let g:airline_left_sep=''
" the separator used on the right side
let g:airline_right_sep=''
Yes this is no separator. This render the following (with solarized colors):
I am on Kubuntu and this is how I set it up for vim in a terminal as well as gvim.
Start vim in that terminal and go to the help section of airline:
:help airline
Scroll down to the section showing powerline symbols and copy the section:
" powerline symbols
let g:airline_left_sep = ''
let g:airline_left_alt_sep = ''
let g:airline_right_sep = ''
let g:airline_right_alt_sep = ''
(Don't copy them from here, copy them from your vim help in your terminal)
Set the font in your gvimrc.local to the same font you selected in the terminal:
if has('gui_running')
set guifont=Droid\ Sans\ Mono\ Slashed\ for\ Powerline
endif
Start vim and gvim and the airline should show correct visuals in both cases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With