Shortcut
Vim Run One Command Without Leaving Insert Mode Shortcut
The Vim shortcut to run one command without leaving insert mode is Ctrl + O on Windows. It's the same on Mac.
Quick Answer
- Windows
- Ctrl+O
- Mac
- Ctrl+O
- Web
- Not confirmed yet
VimShortcut
Run One Command Without Leaving Insert Mode
Runs a single Normal-mode command, then drops you straight back into typing.
How to run one command without leaving insert mode in Vim
- Open Vim and go to where you want to run one command without leaving insert mode.
- Press Ctrl + O on Windows or Ctrl + O on Mac.
Vim Run One Command Without Leaving Insert Mode Shortcut for Windows
Press Ctrl + O.
Vim Run One Command Without Leaving Insert Mode Shortcut for Mac
Press Ctrl + O.
Vim Run One Command Without Leaving Insert Mode Shortcut for Vim Web
We haven't confirmed a Vim Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the Vim run one command without leaving insert mode shortcut?
On Windows, press Ctrl + O. On a Mac, press Ctrl + O.
Is there a Mac shortcut to run one command without leaving insert mode in Vim?
Yes: Ctrl + O.
Does it work in Vim for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify