Preventing auto-indent when pasting in vim

Here’s a nice feature I came across this morning. Basically you just type “:set paste“, go to input mode (and it will in fact show it is in paste mode now), then when you’re done you do “:set nopaste“, that’s it!

Advertisements


%d bloggers like this: