A Homesick castle to use vi
keybindings everywhere.
Need vi
mode right away? Hit M-C-j
(Meta
then Control
then j
). On Ubuntu, Meta
is the right Alt
key. On the Mac, you might have to hit the keys all at once (after configuring Meta in your terminal, typically as Option
). More info... (🚫 broken link as of 2019-07-31. An archived version is available. Note that this can be disabled.)
This is temporary, but useful sometimes, like when using a Docker container.
Many programs default to emacs
keybindings, but your favorite editor is vi
. You would like to have bash
, irb
, etc. to have the same keybindings you've come to know and love.
Use homesick-vi-everywhere
, a package of dotfiles to enable vi
keybindings wherever possible.
This will allow you to use vi
keybindings in:
bash
coffee
irb
(Ruby)mysql
node
python
sqlite3
tmux
It's the same as any other Homesick castle (keep in mind that you can have more than one). Here are the basics:
gem install homesick
homesick clone benjaminoakes/homesick-vi-everywhere
homesick symlink homesick-vi-everywhere
If you want to modify your shell so that vi
is used in more cases, source vi-everywhere
like so:
source "$HOME/.vi-everywhere/bash.d/init.sh"
And for tmux
, add this line in ~/.tmux.conf
:
source-file "$HOME/.vi-everywhere/tmux.conf"
Please refer to the documentation for Homesick for more information.
Like with installation, it's the same as any other Homesick castle:
homesick pull benjaminoakes/homesick-vi-everywhere
If you run into an issue specific to this project, please create an issue on GitHub.
Pull requests to add or improve vi
keybindings for more programs are welcome!
Copyright (C) 2013 Benjamin Oakes
This program is licensed under GPLv2. See LICENSE for a copy.