1

I'd like to go directly into command line mode from insert mode, enter a single command (say :r !date which inserts the date) and then go immediately back into insert mode.

Basically something similar to the Ctrl-o command for entering normal mode for a single command then returning to insert mode.

1 Answer 1

3

I believe

<C-o>:r !date

will work

Your Answer

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

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