The use of Ubuntu--vim text editor

Select buffer and clipboard

Unlike Windows, there are two clipboards in Linux: one is called the selection buffer (X11 selection buffer), and the other is the clipboard. 

The selection buffer is real-time. When using the mouse or keyboard to select content, the content already exists in the selection buffer, which may be the origin of the selection buffer. 

 
Well, after understanding the selection buffer and clipboard, the following is the perfect solution to achieve paste with formatting: 
Option 1: 
Select the text content 
in vim normal mode and press "*p to paste the content in the selection buffer. 
Option 2: 
Copy File content 
in vim normal mode, press "+p to paste the clipboard content in

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325249823&siteId=291194637