Pasting in Vim

For years now I've been using nano with the no word wrap flag to paste stuff into *nix terminals. This kind of sucks because Vim is my favorite editor, however when you try to paste it indents everything for you and ends up with a bloody mess. Well I found that you can:

:set paste

paste what you want and then

:set nopaste when you're done. Wooohoo!

No comments: