diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-10-04 11:18:26 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-10-04 11:18:26 +0000 |
commit | d42b86d22b4c381717ca7f293359a2ca594ab59a (patch) | |
tree | b1f35e549f909576fab02b00226045736e8468d8 /mode-key.c | |
parent | c734789b1876151704fadc834bb163994131037c (diff) | |
download | rtmux-d42b86d22b4c381717ca7f293359a2ca594ab59a.tar.gz rtmux-d42b86d22b4c381717ca7f293359a2ca594ab59a.tar.bz2 rtmux-d42b86d22b4c381717ca7f293359a2ca594ab59a.zip |
Get / and ? the right way round in vi mode, and use : for goto line rather than
g.
Diffstat (limited to 'mode-key.c')
-rw-r--r-- | mode-key.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -155,9 +155,10 @@ struct mode_key_tree mode_key_tree_vi_choice; const struct mode_key_entry mode_key_vi_copy[] = { { ' ', 0, MODEKEYCOPY_STARTSELECTION }, { '$', 0, MODEKEYCOPY_ENDOFLINE }, - { '/', 0, MODEKEYCOPY_SEARCHUP }, + { '/', 0, MODEKEYCOPY_SEARCHDOWN }, { '0', 0, MODEKEYCOPY_STARTOFLINE }, - { '?', 0, MODEKEYCOPY_SEARCHDOWN }, + { ':', 0, MODEKEYCOPY_GOTOLINE }, + { '?', 0, MODEKEYCOPY_SEARCHUP }, { '\002' /* C-b */, 0, MODEKEYCOPY_PREVIOUSPAGE }, { '\003' /* C-c */, 0, MODEKEYCOPY_CANCEL }, { '\004' /* C-d */, 0, MODEKEYCOPY_HALFPAGEDOWN }, @@ -168,7 +169,6 @@ const struct mode_key_entry mode_key_vi_copy[] = { { '\r', 0, MODEKEYCOPY_COPYSELECTION }, { '^', 0, MODEKEYCOPY_BACKTOINDENTATION }, { 'b', 0, MODEKEYCOPY_PREVIOUSWORD }, - { 'g', 0, MODEKEYCOPY_GOTOLINE }, { 'h', 0, MODEKEYCOPY_LEFT }, { 'j', 0, MODEKEYCOPY_DOWN }, { 'k', 0, MODEKEYCOPY_UP }, |