gutterline.vim


Ⅰ. 插件描述

Show the current line as a gutter sign

Ⅱ. 基本信息

创建日期:  2018-01-28
使用用户:  1
Github星:  1
插件作者:  Adrien Fabre

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# GutterLine.vim
Show the current line as a gutter sign

gutterline

Installation

You can install GutterLine with your prefered plugin manager. For example with
vim-plug simply add to your .vimrc:

Plug 'statox/gutterline.vim'

Configuration

Update time

GutterLine.vim use the updatetime option to refresh the sign in the gutter. By
default it is set to 4000 milliseconds. I tested this plugin with a setting of
300 ms:

set updatetime=300

If you already have some autocommands relying on the CursorHold or
CursorHoldI or if you use swapfiles changing this setting may slow down Vim
because it will processes the autocommands and write the swap files more often.

I recommend that you test this setting and adjust it to get a response time you
like.

User settings

GutterLine.vim has several several options which can be set by the user to
change its behavior.

You can change the string used to show the current line, by default it is >:

let g:GutterLineSign='->'

You can define a list of filetypes where the current line should not be shown in
the gutter. For example to ignore the helpfiles:

let g:GutterLineIgnore=['help']

Contribute

If you spot a bug in the plugin you can use the issue tracker.

Pull requests are also welcome!

添加新评论