vim-qfstatusline


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2014-06-08
使用用户:  15
Github星:  4
插件作者:  KazuakiM

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'kazuakim/vim-qfstatusline'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'kazuakim/vim-qfstatusline'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'kazuakim/vim-qfstatusline'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/kazuakim/vim-qfstatusline

Ⅳ. 文档说明

#vim-qfstatusline


Build status


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,},}

Author

KazuakiM

License

This software is released under the MIT License, see LICENSE.

添加新评论