Loading...

Disable auto formatting in vim

:heavy_exclamation_mark: This post is older than a year. Consider some information might not be accurate anymore. :heavy_exclamation_mark:

vim has the behaviour, if you paste a beginning line with comment, the following lines get also commented and indented. To disable this behaviour switch to the paste mode.

:set paste

Paste your stuff. To deactivate the paste mode:

:set nopaste
vi
Please remember the terms for blog comments.