vim external paste code, how to keep the original format without sustained indentation

Content: Use ": set paste" to achieve vim copy format according to the source file

In vim occasionally use to copy the external code, there are often problems kept indent:

 

How to avoid such a situation it

After reinserting like: "set paste" can be used in command mode

 

 Exit paste mode command mode input: set nopaste

 

Guess you like

Origin www.cnblogs.com/Ph-one/p/11706903.html