Last Updated: February 25, 2016
·
385
· michie1

Paste code into Vim

If you want to paste code into Vim without auto indenting, you can do the following:

  • :set paste
  • i (go to insert mode, you'll see INSERT (paste))
  • ctrl + shift + v
  • esc (go to normal mode)
  • :set nopaste`