views:

1029

answers:

14

I'm learning Vim and with it came the urge to use 'hjkl' and friends on every other program, including mouse operated programs like browsers.

How can I use these keyboard shortcuts, or something similar?

I'm using Linux.

+9  A: 

Gmail and several of the other Google apps natively support Vi-like motions.

Also, you might want to try Vimperator and, most definitely, Nethack!

Marcel Guzman
+1 nethack is most definitely productivity software.
jleedev
gmail does? - how?
Vijay Dev
@Vijay, `jk` takes you through conversations.
jeffjose
+1  A: 

I used Ion as a window manager on Linux for a while. It uses keybindings similar to Vim to move between windows, if I recall correctly. It won't make your apps support hjkl movement, but the window manager is a place to start.

Dan Olson
+5  A: 

Give scrotwm a try. It's a tiling window manager with vim-like bindings by default, written by coders who use vim!

And vimperator for Firefox makes my life much, much easier.

For Bourne-like shells (ksh, bash, ...) try set -o vi to make your command line use vi keys.

dwc
+13  A: 

Off the top of my head...

  • Vimperator for Firefox.
  • Awesome, WMII, Xmonad or ion3 window manager.
  • Evince supports hjkl.
  • vifm filemanager
  • there are vi keybindings for readline, which enables them for many terminal apps
  • xzgv image viewer
sluukkonen
I would also add:mpd + ncmpc: musicdwm: another window manager
Wergan
This answer should be wiki so we can add links to the relevant software ;)
sirlancelot
+viplugin for eclipse (http://www.viplugin.com/viplugin/)
Amir Rachum
I prefer [Vrapper](http://vrapper.sourceforge.net/home/) to viplugin, as it also preserves eclipse keybindings. With Vrapper you can use the normal eclipse bindings to start unit tests and such but retain the advantages of vi in normal text editing.
sluukkonen
+1  A: 

Apart from the already mentioned, you could also bind those keys to left... nd so on (with ahk). I've also noticed that several web apps use that movement keys (gmail, greader, ....)

ldigas
+3  A: 

If you use Eclipse, then viPlugin is the best vi-like editor for it.

I always stick the following two lines in my /etc/inputrc (or ~/.inputrc if I don't have root access):

set editing-mode vi
set keymap vi
Evan
+1  A: 

Try keynav, for controlling the mouse pointer using your keyboard.

http://www.semicomplete.com/projects/keynav/

+2  A: 

Others:

  • ViEmu: plugin for Visual Studio, Word, Outlook, SQL Server
  • KomodoEdit: developer's editor
  • AbiWord: word processor
  • Editra: developer's editor
  • VimPlugin: plug Vim into Eclipse. I couldn't get it working under Windows or Mac OS X.
  • Eclim: another Vim plugin for Eclipse.
  • Viper: Vi emulator for Emacs
George V. Reilly
+2  A: 

Viper works, but if you're used to Vim, it is lacking a lot of keybindings that will end up messing you up. Theres also jvi for Netbeans, which I find more complete than the Eclipse plugins. Kate also recently added Vi-emulation mode

I also consider xmonad, to be superior to Awesome, Ion etc.

Flemish Bee Cycle
+1  A: 

VisVim for Visual Studio
CubicleVim for outlook

Naga Kiran
+1  A: 

If you use mpd for listening to music, then I strongly recommend PIM

ivotron
Also, there's muttator for thunderbird
ivotron
A: 

Vimium for Google Chrome.

Charles Roper
+1  A: 

Google Reader respects jk keybindings. I'm sure there are more that they support - feel free to edit my answer.

jeffjose
A: 

Okular, the PDF reader of KDE 4 supports HJKL.

progo