Powerline as status line

252 views
Skip to first unread message

Gabe Heafitz

unread,
Aug 20, 2013, 1:55:12 PM8/20/13
to janus-...@googlegroups.com
Now that powerline has succeeded vim-powerline, and the latter has been deprecated for quite a while, what is the correct way to get powerline installed and working with Janus? I cloned the git repo to ~/.janus/powerline, but powerline does not seem to be installed when this gets executed in ~/.vimrc.after (because without the 'if' statement, vim complains that it doesn't know what 'powerline' is):

if janus#is_plugin_enabled('powerline')  
  set statusline+=%{powerline#statusline()}  
endif

Thank you very much in advance for any help!

Thomas Ferris Nicolaisen

unread,
Sep 2, 2013, 7:17:24 AM9/2/13
to janus-...@googlegroups.com
There's airline which is fully developed in vimscript (no python, as there is in powerline): https://github.com/bling/vim-airline

I installed it in my janus setup a few days ago and it's been working great so far. I just had to set "let g:airline_powerline_fonts = 1" in the .vimrc.before config to get the fancy fonts working.

Greg Steffensen

unread,
Apr 26, 2015, 11:54:14 AM4/26/15
to janus-...@googlegroups.com
I've installed airline too, and it works great. I installed the Powerline version of Inconsolata-g to use with it, and unfortunately some of the Powerline characters don't line up exactly right in iTerm2 for me, but that has nothing to do with vim or airline. It integrates correctly with Fugitive, Syntastic and Ctrlp out of the box. The only catch with incorporating it is that it would make the Janus installation process trickier. By default, it won't use the Powerline symbols, but people will be disappointed that their version doesn't look quite as good as the plugin's screenshots. So you'd have to include documentation on how to install a Powerline-friendly font into their OS, and then configure their terminal emulator to use it (which is trickier than it sounds- in iTerm2 you have to set two different font settings to use it). 
Reply all
Reply to author
Forward
0 new messages