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


I believe

<C-o>:r !date

will work

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.