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:
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:
- pre paste - :set paste
- paste in code/snippet/sql/guinea pig
- :set nopaste
Comments
Post a Comment