pinkyless.vim


Ⅰ. 插件描述

Rest your pinkies.

Ⅱ. 基本信息

创建日期:  2016-10-23
使用用户:  1
Github星:  6
插件作者:  Alisue

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

pinkyless.vim

Even Vimmer use them pinkies a lot. Rest your pinkies by using this plugin :-)

Concepts

  1. It would be nice if Sticky shift could be used in Vim to reduce the opportunities of hitting Shift
  2. It would be nice if the sticky shift above are also available in a single character replacement mode (r)
  3. It would be nice if there is a software Capslock while Capslock in normal mode breaks everything.

Usage

  • Hit ; to start sticky shift mode in Insert/Command/Select mode.
    In sticky shift mode, hit <Space> to type a trigger key (in this case, ;)
  • Hit r to start sticky replace mode in Normal mode.
    In sticky replace mode, hit ; to start the sticky shift mode.
  • Hit <F10> to start Capslock mode in Insert/Command/Select mode.
    In Capslock mode, hit <F10> again to leave or <Esc> to enter Normal mode.

The behaviours are customizable but not documented yet.

Reference

The initial concept comes from http://vim-jp.org/vim-users-jp/2009/08/09/Hack-54.html (in Japanese)

添加新评论