Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Bind only one key map #352

sorin-ionescu opened this Issue Dec 20, 2012 · 6 comments


None yet
4 participants

sorin-ionescu commented Dec 20, 2012

Right now, both emacs and vi are mapped. This is useful for testing because one can switch between the two key maps using bindkey -e and bindkey -v without editing zpreztorc and restarting the terminal, but for regular use, it's useless. The user chooses either emacs or vi and sticks with it.

Perhaps, only the one set in zpreztorc should be bound. Nevertheless, it's doubtful that there will be a significant speed increase by only binding one key map. Thoughts?

sheerun commented Jan 13, 2013

Add an option which keymap to use?


sorin-ionescu commented Jan 13, 2013

@sheerun The option is already there. You may choose between emacs and vi.


rizzatti commented Jan 13, 2013

Well, binding the chosen one only seems like the right thing to do. I doubt anybody does switch that after setting their preference too.


sorin-ionescu commented Jan 13, 2013

@zehrizzatti I have for testing purposes but not in normal use.


rizzatti commented Jan 13, 2013

Maybe using some kind of global debug flag/var? If set, do all binds, otherwise, just the normal flow.


belak commented Nov 10, 2017

With the way the code works now, it would be pretty inconvenient to only set one of the keymaps.

I'm closing this for now because the work required probably wouldn't be worth the minimal startup time save.

@belak belak closed this Nov 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment