Move cursor ctrl+b screen move backward one page ctrl+u screen move backward half page ctrl+f screen move forward one page Ctrl+d screen move forward half page W cursor jumps to the beginning of the next word e cursor jumps to the end of the next word B cursor back to the beginning of the previous word $ The light moves to the end of the line where the cursor is located ^ The cursor moves to the first non-whitespace character of the line o the cursor moves to the beginning of the line # The cursor moves to the line's # position: H moves one line J to the left, moves one line up, moves one row to the right, moves one line to the previous action. Repeat the last operation YY copy cursor line to buffer yw copy cursor to the end of the character copied into the buffer #yy for example 6yy for copying from the line of the cursor 6 lines down the text p delete x every time you delete the cursor position after a character #x such as 6x is deleted after the cursor location The 6 character X removes the previous character at the cursor position #x Delete the # character in front of the cursor to delete the line #dd, for example, 6DD delete cursor line down 6 lines of text instead of R instead of the character R in place of the cursor at the end of the word to change the name of the cursor. Word tail $ at c#w c3w represents changing 3 words looking for a string/keyword holding n down looking for keyword holding n forward looking for keyword Q exit q! Force Exit W Write w! Force write #,# w [file path] Copy the text from line # to # # lines to a file
From for notes (Wiz)
Vim Command daily use