When I am in a CSS file with a blank line, like this:
and I want to simply make a new line and move down to it, by hitting Enter , vim is auto inserting a tab character, e.g.
Running :set fo? inside the CSS file => formatoptions=croql.
If I disable all formatoptions with :set fo= - it still happens.
however if format options are disabled using :set paste vim does stop inserting the tab - but I dont want to have to work in paste mode all the time!
settings:
noautoindentnosmartindentnocindent
If I turn off filetype specific indenting with
filetype indent off
It still happens, what am I missing - do I need to restart vim or something for the settings to take effect?
How can I stop vim autoinserting these tab characters?


:setlocal expandtabhelps – Christian Brabandt Oct 30 '15 at 12:13