VIM tab settings for yaml files

less than 1 minute read

Simple vim configuration adjustments to make it work better with yaml files.

Personal notes: My personal notes on how to setup stuff to make it easier to repeat next time.

Useful vim settings for yaml files:

Add to your ~/.vimrc file following:

set ts=2             " <-- tabstop - how many spaces is \t worth
set sw=2             " <-- shiftwidth - how many spaces is indentation
set et               " <-- expandtab - Use spaces, never \t values
set mouse=a          " <-- Enable mouse support