vim-shot-f


Ⅰ. 插件描述

highlight the character which can move directly to (by `f`,`F`,`t`,`T`)

Ⅱ. 基本信息

创建日期:  2014-08-07
使用用户:  26
Github星:  51
插件作者:  deris

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

shot-f

shot-f highlights the characters where the cursor can move directly (by f,F,t,T).

Screenshot

screenshot

Usage

When you type f, F, t, T, it highlights the characters where the cursor can move directly (when t and T, highlights before the character to move).

If you would like to change default key mappings, write following settings to your .vimrc.

" if you want to map comma as prefix, you can use following settings.

" disable default key mappings
let g:shot_f_no_default_key_mappings = 1

" key mappings
nmap ,f  <Plug>(shot-f-f)
nmap ,F  <Plug>(shot-f-F)
nmap ,t  <Plug>(shot-f-t)
nmap ,T  <Plug>(shot-f-T)
xmap ,f  <Plug>(shot-f-f)
xmap ,F  <Plug>(shot-f-F)
xmap ,t  <Plug>(shot-f-t)
xmap ,T  <Plug>(shot-f-T)
omap ,f  <Plug>(shot-f-f)
omap ,F  <Plug>(shot-f-F)
omap ,t  <Plug>(shot-f-t)
omap ,T  <Plug>(shot-f-T)

Special Thanks

I discussed this plugin's idea with Linda_pp,
and he created first prototype instantly.

Thanks for your kindness and cleverness Linda_pp!

License

MIT License

添加新评论