(1) Press ESC, then 123GG jumps to 123 lines (2) Input: line number jump to the line you want! ###############################
Add, delete comments:
Note: Ctrl + V enters column-editing mode, moves the cursor down or up, marks the beginning of the line that needs comment, then presses the uppercase I, then inserts the comment, such as "//", and then presses ESC, which is all commented.
Delete: Press v First, enter visual mode, select the number of columns in the landscape (such as "//" comment symbol, need to select two columns), then press ESC, then press CTRL + V to enter the column editing mode, move the cursor down or up, select the comment section, and then press D to delete the annotation symbol.
Use the Replace command:
:%s/^/\/\//g to add//number comments at the beginning of the entire content
: 2,50s/^/\/\//g Add//Number comment at the beginning of 2~50
In turn, substitution is both a delete operation.
Vi/vim jump to a specified line