splitbrain.org

electronic brain surgery since 2001

VIM - how to stop auto indenting

Yes! There it is the solution to my biggest problem with the best editor ever - Stop autoindenting when pasting via middle button mouseclick:

Just do

[ESC]:set paste

before and

[ESC]:set nopaste

after pasting from clipboard.

Found at Tip #330 - how to stop auto indenting : vim online