indentation

Hardkill VIMs Indentation

Sven Bachmann
Hi there, I’m using the ftplugin to switch highlighting, indentation and some other filetype specific settings. Today I just wanted to get rid of the autoindentation feature for HTML files. Simply putting the following lines in the html specific file didn’t work, because VIM reset the “indentexpr” variable back to default: setlocal nocindent setlocal noautoindent setlocal nosmartindent setlocal indentexpr= So I googled around and found some other lines: filetype indent off filetype plugin indent off After adding these also to the html-file it worked.