Ⅰ. 插件描述
A plugin for intelligently switching between absolute and relative line numbersⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/vim-numbers-hands-off'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/vim-numbers-hands-off'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/vim-numbers-hands-off'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone
Ⅳ. 文档说明
This is a fork of the numbers.vim plugin originally developed by Mahdi Yusuf.
The majority of the plugin codes have been rewritten, including bug fixes and
an alternative approach to determine whether a number column is needed.
Manual toggle commands have been removed from the original plugin.
This plugin alternates between relative numbering (relativenumber
) and
absolute numbering (number
) for the active window depending on the current
- Relative numbering is used in
Normal
mode while absolute numbering is - in
Insert
mode. In a GUI, it also functions based on whether or not the
app has focus.
Git repository: https://github.com/akanosora/vimfiles/tree/master/bundle/vim-numbers
Original version repository: https://github.com/myusuf3/numbers.vim