`set -o vi` is required for vi-mode bash key bindings (#39)

This commit is contained in:
Junegunn Choi 2014-05-04 12:52:33 +09:00
parent f250fc8f86
commit 7ed18579dc
1 changed files with 6 additions and 3 deletions

View File

@ -222,9 +222,8 @@ page](https://github.com/junegunn/fzf/wiki/examples).
Key bindings for command line
-----------------------------
The install script will setup the following key bindings.
### bash/zsh
The install script will setup the following key bindings for bash, zsh, and
fish.
- `CTRL-T` - Paste the selected file path(s) into the command line
- `CTRL-R` - Paste the selected command from history into the command line
@ -234,6 +233,10 @@ If you're on a tmux session, `CTRL-T` will launch fzf in a new split-window. You
may disable this tmux integration by setting `FZF_TMUX` to 0, or change the
height of the window with `FZF_TMUX_HEIGHT` (e.g. `20`, `50%`).
If you use vi mode on bash, you need to add `set -o vi` *before* `source
~/.fzf.bash` in your .bashrc, so that it correctly sets up key bindings for vi
mode.
The source code can be found in `~/.fzf.bash` and in `~/.fzf.zsh`.
Auto-completion