VIM: Switching off auto-indentation

How to switch off all kinds of auto-indentation in VIM. Put this into ~/.vimrc (or _vimrc in your VIM directory if you are on windows); create the file if it doesn’t exist:

" Switch off all auto-indenting
set nocindent
set nosmartindent
set noautoindent
set indentexpr=
filetype indent off
filetype plugin indent off

The first line is a comment; the rest switches off all the different parts of the auto-indentation system.

This entry was posted in General. Bookmark the permalink.

Comments are closed.