Vim: Eating paste is bad for you
As a long time vim user in the programming world there is one situation which always makes me cringe: That moment where there is something from the internet that you need to paste into your editor. Without fail the formatting takes a disastrous turn, causing whatever you were pasting to go from the Mona Lisa, to picasso’s self portrait. It’s terrible.
I’ve spent ton’s of time mastering silly block select/cut/delete tricks to help fix broken formatting…Those day’s are behind me though! Today I learned about paste mode. It’s so simple! Before you paste into your editor simply issue this command:
Presto, You paste, all the auto formatting options in vim are disabled, and it pastes beautifully, and when you’re done?
Shortest tutorial of all times? Maybe. Most useful tutorial of all times? Quite possibly!