vim-flow-plus


Ⅰ. 插件描述

Vim + Flow integration, includes coverage highlight

Ⅱ. 基本信息

创建日期:  2017-01-24
使用用户:  1
Github星:  7
插件作者:  Carlos Rocha

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-flow-plus

Requirements

Vim version that supports json_decode.

Install

If you use vim-plug:

Plug 'carlosrocha/vim-flow-plus'

Using

Display coverage

Using lightline:

let g:lightline = {
    "...
      \   'right': [ [ 'percent', 'lineinfo' ],
      \              [ 'syntastic', 'flow' ],
      \              [ 'fileformat', 'fileencoding', 'filetype' ] ],
      \ },
      \ 'component_function': {
      " ...
      \   'flow': 'LightlineFlowCoverage',
      " ...
      \ },
      \ }

function! LightlineFlowCoverage()
  if exists('b:flow_coverage_status')
    return b:flow_coverage_status
  endif
  return ''
endfunction

Result:

coverage statusline

Commands

FlowCoverageToggle

Toggle to highlight uncovered expressions in the current file.

coverage highlight

FlowPrevRef

Go to the next reference of the variable under the cursor.

FlowNextRef

Go to the previous reference of the variable under the cursor.

FlowTypeAtPos

Displays the type of the variable under the cursor.

FlowGetDef

Go to the definition of the variable under the cursor.

添加新评论