Pasting stuff into VIM

I have found that if I paste code into vim there is auto indentation and sometimes comments are automatically put on the next line totally screwing up stuff. Easy fix:

  1. :set paste
  2. Paste your stuff
  3. :set nopaste

To easy. Thanks to http://www.vim.org/tips/ 

Leave a Reply