[vi editor] Remove Auto Indent

Since VIM 6.0 the indent has been improved so much. But sometimes when we are pasting formated text (source code or HTML etc) into a buffer, VIM indents again so that lines will be padded with too much spaces.

To turn off the indents, just type this command:

:set noautoindent

And it’s disappear like magic..

Imagine, before I know this command, I have to fix the indents on 2000++ line of code using vi..


Leave a comment

Your email address will not be published. Required fields are marked *