Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • thanks for the detailed explanation. Would you be willing to illustrate the same process except for mapping jk instead of CapsLock? I have it set on my osx machine; however, I don't have it for the rest of the weekend and I can't remember how I did it :) Commented Aug 14, 2016 at 22:08
  • @mbigras - Are you sure you did it in bash? Bash has no ambiguos maps. I know of a way of doing it in zsh: bindkey -v; bindkey -s jk \\e. But that is something that will come back and bite you back when you need jk, because the timer is not configurable and you have no <leader> in zsh. Commented Aug 14, 2016 at 22:30
  • I definitely did it in zsh and not bash, is it not possible in bash? Commented Aug 14, 2016 at 23:18
  • @mbigras - Wait, I was wrong! Reading man bash I found bind that work pretty similar to zsh's bindkey. I'll update the answer. There you go, I'm using zsh too much. Commented Aug 14, 2016 at 23:52
  • 2
    @Jason - Hey, this is the Vi SE, In here everyone writes an ALL CAPS word with: "type word"<Esc>viwU :). No completion needed Commented Jun 8, 2019 at 23:19