Shortcut
Vim Open a Line Above Shortcut
The Vim shortcut to open a line above is O on Windows. It's the same on Mac.
Quick Answer
- Windows
- O
- Mac
- O
- Web
- Not confirmed yet
VimShortcut
Open a Line Above
Creates a new line over the current one and starts typing.
How to open a line above in Vim
- Open Vim and go to where you want to open a line above.
- Press O on Windows or O on Mac.
Vim Open a Line Above Shortcut for Windows
Press O.
Vim Open a Line Above Shortcut for Mac
Press O.
Vim Open a Line Above 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 open a line above shortcut?
On Windows, press O. On a Mac, press O.
Is there a Mac shortcut to open a line above in Vim?
Yes: 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