Ⅰ. 插件描述
StIm - Star ImprovedⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ironhouzi/vim-stim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ironhouzi/vim-stim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ironhouzi/vim-stim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ironhouzi/vim-stim
Ⅳ. 文档说明
vim-stim
StIm - Star Improved
Usage
StIm aims to improve the built in star-command with two adjustments:
- Highlight word, but don't jump to the next match on the initial issuing of a star-command.
- All consecutive spamming of * will jump to the next match.
The state will be reset by either of the following events occurs:
- User disables hlsearch.
- The word under the cursor is different from the previous use of star-command.
Why use the StIm plugin?
- Vim users who don't like to have hlsearch activated by default and use
- instead, often do so because they are constantly searching
to perform arbitrary jumps, or using searches as text-objects. Having
hlsearch activated will in these cases clutter the buffer for each minor
jump or modification. Vim users who still want to have highlighted
searches can do so by using this plugin.
- The behavior of not jumping on the first press was found in Steve Losh's
vimrc, but the added functionality of spamming * to jump to the next match
was an itch that this plugin aims to scratch.
- StIm is extremely light, with just ~30 lines of code.