From d21f8ce26c12b977cffd0dc1871afca952248f11 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Mon, 8 Jan 2018 06:40:43 +1000 Subject: [PATCH] Added yaml settings --- .vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vimrc b/.vimrc index d5c70d9..11d6104 100644 --- a/.vimrc +++ b/.vimrc @@ -125,3 +125,11 @@ function! CSettings() endfunction autocmd BufNewFile,BufFilePre,BufRead *.c :call CSettings() +" Settings for my YAML environment: +function! YAMLSettings() + set tabstop=2 + set shiftwidth=2 + set expandtab + set textwidth=79 +endfunction +autocmd BufNewFile,BufFilePre,BufRead *.yaml :call YAMLSettings()