vim-gothrough-jk


Ⅰ. 插件描述

Don't repeat j, k

Ⅱ. 基本信息

创建日期:  2015-12-13
使用用户:  2
Github星:  7
插件作者:  deris

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-gothrough-jk

This plugin's purpose is Don't repeat j, k.

If you move cursor by j, k(no count specified) more than 3 times continuously, you type by j, k(no count specified) as 5j, 5k.

So you must be use count specified j, k, if you want to move like 4 lines upward, downward.

Screenshot

screenshot

Usage

By default, j, k is mapping to.

If you want to map other key, you can set like followings

nmap ,j  <Plug>(gothrough-jk-j)
nmap ,k  <Plug>(gothrough-jk-k)
nmap ,gj <Plug>(gothrough-jk-gj)
nmap ,gk <Plug>(gothrough-jk-gk)

License

MIT License

添加新评论