homes/common/.local/lib/python2.7/site-packages/powerline/matchers/vim.py

20 lines
446 B
Python
Raw Normal View History

2013-05-02 18:11:33 +02:00
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import
import os
from powerline.bindings.vim import getbufvar
def help(matcher_info):
return str(getbufvar(matcher_info['bufnr'], '&buftype')) == 'help'
def cmdwin(matcher_info):
name = matcher_info['buffer'].name
return name and os.path.basename(name) == '[Command Line]'
def quickfix(matcher_info):
return str(getbufvar(matcher_info['bufnr'], '&buftype')) == 'quickfix'