-
Notifications
You must be signed in to change notification settings - Fork 175
Sharing goodies
Feel free to share things that aren’t strictly related to VimFx but that you think many VimFx users might be interested in here!
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.
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%
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.
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