VIM - Config - Vim settings for editing YAML

autocmd FileType yaml setlocal expandtab shiftwidth=2 softtabstop=2

NOTE: tabstop can also be set (or instead of softtabstop).

  • but this depends on what you consider an actual tab is.