Skip to content

yak-runner - adapt vim settings for YAML editing

Summary

Current vim settings make YAML files editing not very efficient ans user friendly.

Steps to reproduce

Edit a YAML file with vim.

Possible fixes

Create the following /root/.vimrc file:

root@yak-runner-57b654d9bb-w4lsg:~# cat .vimrc

" Enable syntax highlighting

syntax on

" Enable filetype detection and filetype-specific plugins/indentation

filetype on

filetype plugin indent on

" YAML-specific indentation settings

autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab

root@yak-runner-57b654d9bb-w4lsg:~#