Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between C, cc, and S commands in vim

Tags:

They seems to erase the line and enter the insertion mode.

like image 382
vehomzzz Avatar asked Sep 14 '09 12:09

vehomzzz


People also ask

What does S mean in Vim?

created 2001 · complexity basic · version 6.0. Vim provides the :s (substitute) command for search and replace; this tip shows examples of how to substitute.

What is Vim CS?

Vim is a text editor known for its variety of keyboard shortcuts and its different editing modes. Vim is very customizable, and there are many plugins on the internet that allow you to extend Vim's functionality.

What is the difference between Q and Q in Vim?

The key difference is the exclamation mark here. :q will warn you about unsaved changes and will not let you exit. :q! will not warn you.

What is Vim Command Linux?

Definition of Vim Command in Linux. Vim is a text editor that is an upgraded version of the Vi editor and is more compatible with Vi. The most usage of vi editors is to create a new file, edit an existing file, or just read a file. Vim editor is more useful in editing different kinds of plain text.


1 Answers

  • C replaces the rest of the line (starting at cursor position) with your edit.
  • cc and S are synonyms and replace the whole line(s) with your edit.
like image 72
Michael Krelin - hacker Avatar answered Sep 17 '22 17:09

Michael Krelin - hacker