Top 10 things to remember for text manipulation in Vim
Vim Shortcuts for text manipulations
Vim has been my favorite editor for a long and here I am going to post some of the cool shortcuts that you can use for Text Manipulation.
Text Manipulation
Pressing
gg
goes to the top of the file.G
moves to the bottom of the file.Pressing `u` will do the UNDO action when you are in NORMAL mode.
cc
will delete the current line and go to the INSERT MODE.0
takes you to the beginning of the line, the total beginning and not the start of the text._
takes you to the beginning of the nonwhite space character.$
takes you to the end of the lined$
will delete everything from the cursor toward the right. This is the same as hittingD
.<num>dd will delete that many lines of code, like
9dd
will delete 9 lines of code and120dd
will delete and hittingdd
for 1 line of code.s
deletes the single character and gets you into the INSERT mode while just like how you usex
to delete a single character in NORMAL mode.