toggle-numbers.vim


Ⅰ. 插件描述

Very simple Vim plugin to toggle between relative and absolute line numbers

Ⅱ. 基本信息

创建日期:  2014-02-28
使用用户:  6
Github星:  1
插件作者:  Dave Baker

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Vim 7.3 introduced the excellent concept of relative line numbers that allow for very easy motions without having to count lines, but sometimes its just plain useful to have the normal absolute line numbers in place.

Toggle-Numbers.vim is a very simple plugin that lets you switch between relative and absolute line numbers at ease

Requirements

  • Vim 7.3+

 Installation

I prefer to manage my Vim bundles with pathogen.vim, so if you have this installed already, installing this plugin is as easy as

cd ~/.vim/bundle
git clone https://

Manual install would be to

Usage

There is only one command exposed by this plugin, which is :LineNumberToggle. By default it is bound to <Ctrl-n>, but can easily be changed in your own vimrc file.

 License

Copyright © Dave Baker. Distributed under the MIT license

添加新评论