c$ / C VIM Command
How to use c$ / C Command in Linux VIM editor?
Explanation
c$ (C) stands for delete from current position to end of line and change the mode
This command is used to delete the content from current cursor position to end of the line. Then the file mode is automatically changed to insert mode.
Usage:
c$ / C
Example:
- Open the file test.txt
$ vim test.txt
- We can notice the text in the file.
Hiox India
Vim Tutorial
- Let us see how to delete the text from the second line third letter to end of the line.
- Move the cursor to the second line third letter using the arrow keys
- To delete the content from current position to end of the line
Press C or Press c$
- Then, the file mode is automatically changed to insert mode.