Ⅰ. 插件描述
Toggles between relative and absolute line numbers automaticallyⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'marcindziedzic/vim-numbertoggle-with-ourselves'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'marcindziedzic/vim-numbertoggle-with-ourselves'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'marcindziedzic/vim-numbertoggle-with-ourselves'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/marcindziedzic/vim-numbertoggle
Ⅳ. 文档说明
# numbertoggle
Fork of numbertoggle (jeffkreeftmeijer/vim-numbertoggle.git) allows you to quickly toggle between combined number with relativenumber to nonumbers at all. Rest of the original functionality was removed.
Installation
If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:
cd ~/.vim/bundle
git clone git://github.com/marcindziedzic/vim-numbertoggle.git
Once help tags have been generated, you can view the manual with:help numbertoggle.
License
Copyright (c) Jeff Kreeftmeijer. Distributed under the same terms as Vim itself. See :help license.
Forked and changed by Marcin Dziedzic (marcindziedzic@pragmaticcoders.com)