Shortcut
Vim Change the Current Line Shortcut
The Vim shortcut to change the current line is cc on Windows. It's the same on Mac.
Quick Answer
- Windows
- cc
- Mac
- cc
- Web
- Not confirmed yet
VimShortcut
Change the Current Line
Deletes the whole line and puts you in Insert mode.
How to change the current line in Vim
- Open Vim and go to where you want to change the current line.
- Press cc on Windows or cc on Mac.
Vim Change the Current Line Shortcut for Windows
Press cc.
Vim Change the Current Line Shortcut for Mac
Press cc.
Vim Change the Current Line 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 change the current line shortcut?
On Windows, press cc. On a Mac, press cc.
Is there a Mac shortcut to change the current line in Vim?
Yes: cc.
Does it work in Vim for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify