vim-noscrollbar


Ⅰ. 插件描述

A scrollbar-like widget for the vim statusline

Ⅱ. 基本信息

创建日期:  2014-01-27
使用用户:  25
Github星:  120
插件作者:  Giovanni Cavallanti

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Noscrollbar

Noscrollbar demo

Noscrollbar is a scrollbar-like widget for the vim statusline that
provides a visual feedback of what part of a buffer is currently shown on
screen.

The "no" in noscrollbar refers to the fact that the gripper cannot be
really gripped and dragged, i.e., the scrollbar cannot be used to scroll the
window with the mouse.

Installation

I recommend installing pathogen.vim, and
then simply copy and paste:

cd ~/.vim/bundle
git clone https://github.com/gcavallanti/vim-noscrollbar.git

Once help tags have been generated, you can view the manual with
:help noscrollbar.

How to use

Simply add %{noscrollbar#statusline()} to the statusline option and you are

  1. Example:

    set statusline=%<%f %h%m%r%=%-14.(%l,%c%V%) %{noscrollbar#statusline()}

The default behavior returns a string of length 20 where the dash character '-'
is used to render the track of the scrollbar and the hash character '#' is used
to render the gripper. The scrollbar look can be customized by passing the
length, the track character and the gripper character. For example the default
look is set by calling %{noscrollbar#statusline(20,'-','#')}.

High resolution mode

NoscrollBar comes with an high resolution mode. Check :help noscrollbar
for details.

Self-Promotion

Like noscrollbar? Follow and/or star the
repository. You might also want to follow
me on GitHub.

License

Copyright (c) Giovanni Cavallanti. Distributed under the same terms as Vim itself.
See :help license.

添加新评论