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

Windows
cc

Deletes the whole line and puts you in Insert mode.

Learn More

How to change the current line in Vim

  1. Open Vim and go to where you want to change the current line.
  2. 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