Use of the Paste Copy Accelerator for VIM in Linux

Source: Internet
Author: User

Refer to the essays from Maowang

Cut (delete):

Clipping actually removes the selected content, so it can be used when the cut command is used, or when the delete command.

First, you can enter the free selection mode in command mode, select the text you want to cut, and then press D to cut. Other command mode Cut command: DD: Cut the current line ndd:n represents a number greater than 1, cut n row DW: Cut from the cursor to the end of a list/ word, including a space de: cut from the cursor to the end of a list/ word, not including spaces d$ : Cut from the current cursor to the end of the line D0: Cut from the current cursor position (not including the cursor position) D3L: Cut 3 characters to the right from the cursor position (including the cursor position) D5G: Cut the current line (including the current row) to line 5th (excluding it) d3b: Cut 3 words from the current cursor position (excluding cursor position) All rows from the current line to the top row of the displayed screen DM: Cut all rows from the current line to the line specified by command m DL: cut all rows from the current line to the bottom of the displayed screen

In addition: Press the D key alone, is cut 2 lines, press ND, is cut n+1 line, but generally use or is recommended to use double D (i.e. DD) to execute.

Copy:

First, you can enter the free selection mode in command mode, select the text you want to cut, and then press D to cut. Other command mode Cut command: yy: Copy the current line nyy:n represents a number greater than 1, copy n rows yw: Copy from the cursor to the end of a list/ word, including the space ye: Copy from the cursor to the end of a list/ word, not including spaces y$ : Copy from current cursor to end of line y0: Copy from current cursor position (not including cursor position) Y3L: Copy 3 characters to the right from the cursor position (including the cursor position) y5g: Copy the current line (including the current row) to line 5th (excluding it) y3b: Copy the 3 words from the current cursor position (not including the cursor position) 

Press Y alone to copy the 2 rows, and NY is to copy the N+1 line.

Paste:

Press p at the cursor where you want to paste.

Use of the Paste Copy Accelerator for VIM in Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.