Lokaltog/vim-powerline — pull request #185 by pydave (2012-08-02 04:29:10+00:00)
Title: Allow users to customize ctrl-p's statusline

I don't like the default statusline in ctrl-p: I find it's too busy. So I want to remove the prev/next items. I also don't find the focus item to be useful since the prompt changes when you switch from prompt to window.

I wrote a custom ctrl-p statusline function, but that doesn't work with powerline. So I modified powerline to allow users to control these values.

I don't know if this is the best way to give users control (could be a 0/1 option instead of text). Maybe I should write a new segment? I'm not sure.

This change lets you disable focus, prev, next by setting these values:
let g:Powerline#Segments#ctrlp#segments#focus = ''
let g:Powerline#Segments#ctrlp#segments#prev = ''
let g:Powerline#Segments#ctrlp#segments#next = ''