sponsor Vim development Vim logo Vim Book Ad

stickykey : You don't need press very far away meta keys

 script karma  Rating 0/0, Downloaded by 1363  Comments, bugs, improvements  Vim wiki

created by
tyru
 
script type
utility
 
description
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.
 
install details
just install to your ~/.vim directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
stickeykey.zip 0.0.1a 2011-01-28 7.0 tyru fix error: j is undefined variable
stickeykey.zip 0.0.1 2011-01-27 7.0 tyru - refactoring
- add experimental options to g:stickykey_when_no_escaped_key ("input", "mapping")
stickykey.zip 0.0.0 2010-02-25 7.0 tyru Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github