stickykey


Ⅰ. 插件描述

Let meta keys get sticky

Ⅱ. 基本信息

创建日期:  2010-02-13
使用用户:  1
Github星:  3
插件作者:  tyru

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

latest version at http://github.com/tyru/stickykey.vim/

This plugin provides Sticky Key to you.
With Sticky Key, you can emulate <C-o> by ";o".
(In this case, <Plug>(stickykey-ctrl) is mapped to ";")

And I suppose you are using GNU screen :)
Inputting screen's hotkey is a little complicated.
But you can send key input to screen fastly, certainly, and easily.

MAPPINGS

<Plug>(stickykey-...-remap) works like recursive mapping.

<Plug>(stickykey-ctrl)
<Plug>(stickykey-ctrl-remap)
    Sticky key for |ctrl|.

<Plug>(stickykey-alt)
<Plug>(stickykey-alt-remap)
    Sticky key for |alt|.

<Plug>(stickykey-shift)
<Plug>(stickykey-shift-remap)
    Sticky key for |shift|.

<Plug>(stickykey-command)
<Plug>(stickykey-command-remap)
    Sticky key for Macintosh command key. (see |<D-|)

VARIABLES

g:stickykey_when_no_escaped_key string (default: "thru")
    This variables determines when stickykey can not find
    escaped input with meta key.
    For e.g., while waiting the next key after pressing
    "<Plug>(stickykey-ctrl)", <C-o> is input.
    This variable can be any one of those:
        "nop":
            Behave like no key is input.
        "thru":
            Execute key without escaping with meta key.
        "again":
            Dispose current key input, wait next input again.

添加新评论