Copy the specified line data to the specified location in vim

In vim, sometimes you need to copy the specified line data to the specified location, you can use the co command of vim.

As shown in Figure 1, open a text with vim

 

 

 

Input: Enter command mode, enter 1,2 co 2 to copy the data from lines 1-2 to the position starting from line 3



 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326606896&siteId=291194637