Skip to content

Commit

Permalink
Add v alias in vi command mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Sep 8, 2011
1 parent deccf4a commit a19b68c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ already works. It stands for "open".
> What about vi readline bindings?
They're supported, too. In addition to `C-x C-e` and `C-o` in insert
mode, you can use `o` in normal mode.
mode, you can use `o` or `v` in normal mode.

> It's not working on OS X.
Expand Down
1 change: 1 addition & 0 deletions lib/pry-editline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def self.hijack_inputrc
"\C-o": "\C-e \C-a\t\C-k\C-x\C-l"
set keymap vi-command
"o": "A \C-a\t\C-k\C-x\C-l\e"
"v": "A \C-a\t\C-k\C-x\C-l\e"
set keymap emacs
"\C-x\C-l": redraw-current-line
"\C-x\C-e": "\C-e \C-a\t\C-k\C-x\C-l"
Expand Down

0 comments on commit a19b68c

Please sign in to comment.