From f2c63fe5cac072e33c70dd5ddf88e9d1409f44eb Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Thu, 7 Oct 2021 20:11:25 +0200 Subject: [PATCH] Add autocmd for ansible filetype detection --- dotfiles/vim/vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotfiles/vim/vimrc b/dotfiles/vim/vimrc index c51bc09..3989aa1 100644 --- a/dotfiles/vim/vimrc +++ b/dotfiles/vim/vimrc @@ -212,6 +212,8 @@ augroup configgroup autocmd BufEnter *.sh setlocal shiftwidth=2 tabstop=2 softtabstop=2 foldlevel=0 foldmethod=marker autocmd FileType yaml setlocal shiftwidth=4 tabstop=4 softtabstop=4 + autocmd BufRead,BufNewFile */playbooks/*.yml set filetype=yaml.ansible + augroup END " }}} set modelines=1