Tuesday, January 20, 2009

vim makes me pasty when pasting

For a while its bugged me that when I paste into a vim session with all nice options turned on, it formats the crap out of it. At some point setting set noautoindent stopped fixing this problem.

Thank goodness that I found a solution, it probably exists for years but with vim sometimes knowing the right verbage is the key to a finding how to do it. (its probably been there since version 5.0)

Here is how it works for me:
  1. pre paste - :set paste
  2. paste in code/snippet/sql/guinea pig
  3. :set nopaste
Man that makes my life so much easier...

1 comment:

  1. Oracle fusion procurement training empowering present day agencies watch our unfastened tutorials80+ hours of brilliant motion pics
    The challenge-oriented video come to be bested tutorials &help

    Thanks for sharing.
    With extremely good regards
    oracle fusion procurement online training
    oracle fusion procurement training