powerline with macvim

402 views
Skip to first unread message

Gregg Thomason

unread,
Mar 28, 2012, 9:16:32 AM3/28/12
to vim...@googlegroups.com
Has anyone used MacVim with Powerline (https://github.com/Lokaltog/vim-powerline) and not in a term (ie, has("gui_macvim")) and *not* have it be all ... wacky?

Specifically, switching buffers (eg via C-^ or with bufexplorer) nukes the powerline scheme. cargo-cult fixes eg remove 'hi clear' from your theme aren't working for me. It seems most people are using a vim in iTerm2 instead of Macvim, and possibly the problem occurs in Macvim generally (eg https://github.com/Lokaltog/vim-powerline/issues/82).

Thoughts?

Sylvain Soliman

unread,
Mar 28, 2012, 9:28:53 AM3/28/12
to vim...@googlegroups.com
* Gregg Thomason <gregg.t...@gmail.com>:

> Has anyone used MacVim with Powerline (https://github.com/Lokaltog/vim-powerline) and not in a term (ie, has("gui_macvim")) and *not* have it be all ... wacky?

I do, all the time… (well, also in iTerms, but more often in gui_macvim)

> Specifically, switching buffers (eg via C-^ or with bufexplorer) nukes the powerline scheme. cargo-cult fixes eg remove 'hi clear' from your theme aren't working for me. It seems most people are using a vim in iTerm2 instead of Macvim, and possibly the problem occurs in Macvim generally (eg https://github.com/Lokaltog/vim-powerline/issues/82).

I don't know if it is related, but I only use 'g:Powerline_symbols =
'compatible' (with a few personal overrides).

Also, I use the SL version of MacVim (7.3 53), with the experimental
renderer turned on, and the latest version of Powerline from GitHub.

Best,

Sylvain Soliman

--
Sylvain Soliman <Sylvain...@m4x.org> GnuPG Public Key: 0x0F53AF99
Page personnelle http://contraintes.inria.fr/~soliman/

Gregg Thomason

unread,
Mar 28, 2012, 9:43:28 AM3/28/12
to vim...@googlegroups.com
On Wednesday, March 28, 2012 9:28:53 AM UTC-4, Sylvain Soliman wrote:

> I don't know if it is related, but I only use 'g:Powerline_symbols =
> 'compatible' (with a few personal overrides).

Some hints on those personal overrides? 'compatible' was the same result. Are you using a dark or light background theme?

and FWIW I'm on Lion MacVim 7.3.390 w/ latest powerline.

Sylvain Soliman

unread,
Mar 28, 2012, 9:52:18 AM3/28/12
to vim...@googlegroups.com
* Gregg Thomason <gregg.t...@gmail.com>:

> Some hints on those personal overrides? 'compatible' was the same result. Are you using a dark or light background theme?

let g:Powerline_symbols_override = {
\ 'BRANCH': 'ψ',
\ 'LINE': '↳',
\ }

I mostly use xoria256 (dark) but I used to use the light version of
solarized, not so long ago and don't recall any issue.

Sylvain

Gregg Thomason

unread,
Mar 28, 2012, 12:12:59 PM3/28/12
to vim...@googlegroups.com
Solved! (I think)

I had in my vimrc

" retain view state when switching windows
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview

It's a cargo-cult answer but removing that has solved the problem for me.

Reply all
Reply to author
Forward
0 new messages