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

Enable evil-execute-in-normal-state as a gateway to evil-mode in holy-mode #1394

Closed
tuhdo opened this issue Apr 26, 2015 · 14 comments
Closed

Comments

@tuhdo
Copy link
Contributor

tuhdo commented Apr 26, 2015

I think this is the best way for Emacs users to experience Vim features i.e. text objects, folding (the default key bindings of hs-minor-mode are horrible).... That is, in the middle of editing, an Emacs user can execute a Vim command to do something with a text object and get back to editing with Emacs without having to switch mode.

@tuhdo
Copy link
Contributor Author

tuhdo commented Apr 26, 2015

I suggest we replace C-o of stock Emacs with evil-execute-in-normal-state for consistency. An Emacs user can press C-o o/O to open line below or above anyway. We could also bind stock open-line to SPC j o.

@CestDiego
Copy link
Contributor

I find this useful but isn't C-o reserved for emacs users? D:

@tuhdo
Copy link
Contributor Author

tuhdo commented Apr 26, 2015

That's why we give the command to SPC j o.

@CestDiego
Copy link
Contributor

But in holy mode SPC is not a preffix key is it? I think I didn't understand the proposal.

@tuhdo
Copy link
Contributor Author

tuhdo commented Apr 26, 2015

In holy-mode, the default leader key is M-m and fuction like SPC.

@syl20bnr
Copy link
Owner

To my mind a better approach is to use ESC then perform the action and hit i if required to go back in emacs mode.

For instance to insert a line below it is ESC o, done.

@syl20bnr
Copy link
Owner

What does C-o shadow ?
This would be handy indeed.

@CestDiego
Copy link
Contributor

ugh :( that takes to much movement of the hands :( that's the whole point of near home-row stuff.. C-o o is cool for example.

@CestDiego
Copy link
Contributor

C-o shadows open-line

@syl20bnr
Copy link
Owner

I never had the need of such function :-) So we can shadow it. I don't know where to put this in the documentation though.

@CestDiego
Copy link
Contributor

In the super sikrit tipz section.

@tuhdo
Copy link
Contributor Author

tuhdo commented Apr 27, 2015

I think we can put it in better-defaults.

@tuhdo
Copy link
Contributor Author

tuhdo commented Apr 27, 2015

@syl20bnr I updated it to include this change in better-defaults along with documentation.

@StreakyCobra
Copy link
Contributor

As tuhdo implemented this change in better-defaults, the issue is solved. Closing.

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

No branches or pull requests

4 participants