#vim-qfstatusline
This Vim plugin is plugin supporting watchdogs.
If watchdogs check syntax error,
this plugin execute statusline plugin function and statusline plugin call back to get error messages.
##Requirement
##Recommends
##Usage ###Installation
Sample setting is using NeoBundle.
If you want to use quickfix window, you can check here.
NeoBundle 'Shougo/vimproc'
NeoBundle 'thinca/vim-quickrun'
let g:quickrun_config = {
\ 'watchdogs_checker/_' : {
\ 'hook/close_quickfix/enable_exit': 1,
\ 'hook/back_window/enable_exit': 0,
\ 'hook/back_window/priority_exit': 1,
\ 'hook/qfstatusline_update/enable_exit': 1,
\ 'hook/qfstatusline_update/priority_exit': 2,},}
NeoBundle 'osyo-manga/shabadou.vim'
NeoBundle 'osyo-manga/vim-watchdogs'
NeoBundle 'KazuakiM/vim-qfstatusline'
###default statusline setting
function! StatuslineUpdate()
return qfstatusline#Update()
endfunction
let g:Qfstatusline#UpdateCmd = function('StatuslineUpdate')
set statusline=\ %{mode()}\ \|\ %t\ %m\ %r\ %h\ %w\ %q\ %{StatuslineUpdate()}%=\|\ %Y\ \|\ %{&fileformat}\ \|\ %{&fileencoding}\
###lightline.vim setting
NeoBundle 'itchyny/lightline.vim'
let g:lightline = {
\ 'active': {
\ 'left': [['mode','paste'],['filename','qfstatusline']],
\ 'right': [['lineinfo'],['percent'],['fileformat','fileencoding','filetype']]},
\ 'component_expand': {'qfstatusline': 'qfstatusline#Update'},
\ 'component_type': {'qfstatusline': 'error'}}
let g:Qfstatusline#UpdateCmd = function('lightline#update')
####using also quickfix window
let g:quickrun_config = {
\ 'watchdogs_checker/_' : {
\ 'hook/back_window/enable_exit' : 1,
\ 'hook/qfstatusline_update/enable_exit': 1,
\ 'hook/qfstatusline_update/priority_exit': 1,},}
This software is released under the MIT License, see LICENSE.