[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
binding key sequence "js" to vi-command-mode?
From: |
Britton Kerin |
Subject: |
binding key sequence "js" to vi-command-mode? |
Date: |
Wed, 10 Dec 2008 12:56:14 -0900 |
I find Escape hard to get to in vi so I map the sequence "js" to it.
I'm wondering if its possible to emulate this behavior in bash. I
tried:
bind -m vi-insert "js": vi-command-mode
but it doesn't seem to work: typing the sequence from insert mode
just beeps when j is typed and then the s gets inserted.
To avoid the icky issue of inputing a literal "js" maybe something
like the timeout behavior that vim has is considered necessary, but
I'd take it even if such a thing isn't available.
Thanks,
Britton
- binding key sequence "js" to vi-command-mode?,
Britton Kerin <=