Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yi.Keymap.Vim now exposes exEval and exMode #28

Merged
merged 1 commit into from Jul 2, 2012

Conversation

ethercrow
Copy link
Member

Huge and boring change.

ex_mode, ex_eval and couple of functions they depend on are extracted to top level. I've renamed them to exMode and exEval so that public API of Vim module looks consistent.

exEval enables user to map events to ex commands like this:

 -- pressing space in normal mode resets search highlight
 (char ' ' ?>>! exEval self ":nohlsearch\n")

And exMode allows mapping an event to partial ex input, like this:

 -- this helps when you don't press Shift hard enough
 (char ';' ?>>! exMode self ":")
jeffwheeler added a commit that referenced this pull request Jul 2, 2012
Yi.Keymap.Vim now exposes exEval and exMode
@jeffwheeler jeffwheeler merged commit 0d64cbd into yi-editor:master Jul 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants