Move current line to before line with mark a Move current line to after line with mark a (see using marks) You can move a line, or a block of lines, with the :m command. Press "ap to paste after the line with the cursor, or "aP to paste before. ![]() Select a range of lines vith V type "Ad to delete the entire range and append it to the same register.Move to another line type "Add to delete it and append to the same register.Move to the first line you wish to move type "add to delete it to register a. ![]() You can cut several lines, or blocks of text, by appending to a register using an uppercase letter, for example: Then move the cursor, and paste the text at the new position (press p to paste after the line with the cursor, or P to paste before). Cut the line that you want to move by typing dd, or visually select some lines (press V then move the cursor) and type d to cut the selected block.
0 Comments
Leave a Reply. |