Digital Marketing

Fix vim inserting comments while copy and paste

Put directly from the register without ever entering insert mode, using  "+p
  • " means "use the following register";
  • + refers to the clipboard, and
  • p for put! 
Or

run :set paste. Turn it off once you leave insert mode with :set nopaste.

Comments

Popular posts from this blog

MySQL Sandbox with the Sakila sample database