Skip to content
Dario Gjorgjevski edited this page Dec 13, 2015 · 8 revisions

Feel free to share things that aren’t strictly related to VimFx but that you think many VimFx users might be interested in here!

readline-like keybindings in text fields within GTK apps

If would would like to have readline-like keybindings (i.e. ctrl + w do delete word backward, ctrl + u to clear line, etc.) when editing text in GTK apps (also for navigation in tree views), then add the following to your ~/.gtkrc-2.0 and $XDG_CONFIG_HOME/gtk-3.0/settings.ini:

gtk-key-theme-name=Emacs

Despite the Emacs name, these keybindings are not very related to Emacs; in fact, some of them do not even exist in Emacs. Rather, they appear in things which use readline, like your terminal emulator, so are quite familiar to keyboard lovers.

N.B. ctrl + a will not do 'Select All' anymore; it will go to the beginning of the line. Use ctrl + / instead.

Navigate apps with vim like keys Autohotkey & Caps Lock

I found this cool script for Autohotkey:
Geeky vim-like text navigation everywhere in Windows by Pavel Chikulaev

Usage example:
Enter some url in Firefox and then select item from dropdown menu of suggestions by pressing Caps Lock and using j and k to navigate. Pretty cool stuff! And it works everywhere.
Say, you are editing text in vim or in any editor you like and instead of going to Insert mode you just press Caps Lock to make small movement and continue editing.
I can use it even in Firefox by typing this text.

I hope it will be helpful to someone.
TheGreenhabi

P.S. To make script conform to vim's hjkl you need to edit it, but it's very easy. You need to change this lines

HotKey, *h, MyPgUp,  %enable%
HotKey, *i, MyUp,    %enable%
HotKey, *j, MyLeft,  %enable%
HotKey, *k, MyDown,  %enable%

to

HotKey, *h, MyLeft,  %enable%
HotKey, *i, MyEmpty, %enable%
HotKey, *j, MyDown,  %enable%
HotKey, *k, MyUp,    %enable%

LabelControl: Hit-a-hint for Windows applications

While we're at it: DonationCoder's Skrommel built a nifty little tool called LabelControl with AutoHotkey a few years ago (unfortunately). Pressing Ctrl shows numbered hints for (mostly) all clickable items in windows GUI apps.

Here's how LabelControl looks in action http://i.imgur.com/TVV4WUc.gif?1

Little drawback: It's a little outdated, dunno how much of it is still working on Win8/10. Doesn't seem to be working with .NET-Applications for example. But then again: Skrommel released the source, feel free to hack it. You might, for example, find these two forum topics helpful:

-- @knobhead

Clone this wiki locally