vim-numberstar


Ⅰ. 插件描述

A Vim plugin to search numbers quickly with '*' mapping.

Ⅱ. 基本信息

创建日期:  2013-08-26
使用用户:  1
Github星:  2
插件作者:  Linda_pp

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

## Search numbers quickly with *

This Vim plugin makes normal mode mapping * match number representations such as -123, 12.5, 10e5, 0x10.
I made this mapping because original * mapping can't match them and it's inconvenient when I want to search magic numbers in a file.

This plugin never override any mappings. So you should write setting in your vimrc as you like.

Vimrc setting example

nnoremap <expr>*  numberstar#key('*')
nnoremap <expr>#  numberstar#key('#')
nnoremap <expr>g* numberstar#key('g*')
nnoremap <expr>#* numberstar#key('#*')

This plugin is distributed under the MIT License.

添加新评论