On Fri, 24 Aug 2012, Benjamin R. Haskell wrote:
On Fri, 24 Aug 2012, chris wrote:
I added plugin virtualenv (https://github.com/jmcantrell/vim-virtualenv)
into my runtimepath.
I'm new to virtualenv. The Vim plugin virtualenv has a function for
statusline show the virutalenv name. I added it into my statusline option
like this:
set statusline+=\ \%{virtualenv#statusline()}
You shouldn't set that. Powerline makes the 'statusline' option irrelevant.
And I also add this virtualenv segment into Powerline statusline.
call Pl#Theme#InsertSegment('virtualenv', 'after', 'hgrev')
Powerline already has built-in support for virtualenv. But, if you're using
a non-standard theme or something, your call should be:
call Pl#Theme#InsertSegment('%{virtualenv#statusline()}', 'after', 'hgrev')
Also forgot to mention:
Try running :PowerlineClearCache
Or add the following to your .vimrc:
let g:Powerline_cache_enabled = 0
More info for deciding which to use or whether disabling the cache makes
sense at:
:help Powerline_cache_file
:help Powerline_cache_enabled
--
Best,
Ben H
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php