Results 1 to 2 of 2

Thread: vi terminal bindings

  1. #1
    Join Date
    Aug 2009

    vi terminal bindings

    I'm using "set -o vi" in bash to use vi bindings.
    Is there a way to remap some other key to <Esc>, it's a real pain.
    .vimrc doesn't apply as it seems to be 'regular vi', I've tried .exrc, but it doesn't work.. Anyone? Thanks

  2. #2
    Join Date
    Sep 2008

    Re: vi terminal bindings

    You can do it in bash like this:
    bind -m vi-insert [:vi-movement-mode
    This would bind it to the [ key.

    You could also rebind Caps Lock to Escape. This can be done in the keyboard layout manager (, or with:
    xmodmap -e "clear Lock" && xmodmap -e "keycode 66 = Escape"
    Last edited by japadamaray; December 9th, 2012 at 01:05 AM.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts