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.
:set fo? inside the CSS file =>
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!
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?