Skip to content

Instantly share code, notes, and snippets.

@falconws
Forked from dragonken/.vimrc
Created April 4, 2021 17:13
Show Gist options
  • Save falconws/1d1c90a48521ff3ac073d418eb182b7c to your computer and use it in GitHub Desktop.
Save falconws/1d1c90a48521ff3ac073d418eb182b7c to your computer and use it in GitHub Desktop.
YAML space indent for vim
syntax on
filetype plugin indent on
"Get the 2-space YAML as the default when hit carriage return after the colon
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
set is hlsearch ai ic scs
nnoremap <esc><esc> :nohls<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment