0

In vim, I can do C-O in insert mode and drop to normal mode for one command. Is there a way I can do this in evil, except dropping to Emacs mode for one command? e.g. C-Q C-x C-f where C-Q is in vim mode and C-x C-f is in emacs mode.

1 Answer 1

2

In normal and visual state, \ is bound to evil-execute-in-emacs-state, which does exactly what you're looking for. For instance, \ C-t in normal state will run transpose-chars and remain in normal state afterwards.

1
  • Fantastic, thank you for your help.
    – kkeey
    Commented Sep 5, 2021 at 19:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.