Skip to content

Instantly share code, notes, and snippets.

@jakemalley
Last active February 15, 2022 08:37
Show Gist options
  • Save jakemalley/c2bab95965eafdb16902c11cdf0ccac2 to your computer and use it in GitHub Desktop.
Save jakemalley/c2bab95965eafdb16902c11cdf0ccac2 to your computer and use it in GitHub Desktop.
" default settings
set expandtab
set autoindent
" default expand to 4 spaces
set ts=4 sts=4 sw=4
" .vimrc settings for yaml
au! BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml
autocmd FileType yaml setlocal ts=2 sts=2 sw=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment