Y
Hacker News
new
|
ask
|
show
|
jobs
by
mpobrien
5517 days ago
Another method I sometimes use for pasting large blocks of code:
:r !cat (paste your stuff) ctrl - D
Doesn't require any switching between paste modes.
2 comments
tzs
5516 days ago
Nice idea, and you can replace cat if you need to clean up the paste:
:r!perltidy (paste coworker's ugly perl code) ctrl-D
and you have nice looking code pasted.
link
iopuy
5517 days ago
Interesting.... I see how it works, any other benefit to this approach?
link