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`
Written by Michiel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#