Add cmdwin statusline for vim

This commit is contained in:
Kim Silkebækken 2013-01-29 08:58:22 +01:00
parent 29793259e1
commit 2f361711fe
4 changed files with 21 additions and 1 deletions

View File

@ -35,5 +35,5 @@ endfunction
augroup Powerline
autocmd!
autocmd BufEnter,BufWinEnter,WinEnter * call s:UpdateWindows()
autocmd BufEnter,BufWinEnter,WinEnter,CmdwinEnter * call s:UpdateWindows()
augroup END

View File

@ -33,6 +33,7 @@
"colorscheme": "default",
"theme": "default",
"local_themes": {
"cmdwin": "cmdwin",
"help": "help"
}
}

View File

@ -0,0 +1,15 @@
{
"segments": {
"left": [
{
"type": "string",
"contents": "Command Line",
"highlight_group": ["file_name"]
},
{
"type": "filler",
"highlight_group": ["background"]
}
]
}
}

View File

@ -7,3 +7,7 @@ import vim
def help():
return bool(int(vim.eval('&buftype is# "help"')))
def cmdwin():
return bool(int(vim.eval('bufname("%") == "[Command Line]"')))