1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-21 19:11:30 +01:00

vim: add ansible.yaml rules

This commit is contained in:
bretello 2020-12-06 23:20:21 +01:00
parent 9fe2ec17a6
commit 1b4c259c97
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -31,6 +31,8 @@ set hlsearch "highlight search results (using *)
set shiftwidth=4 tabstop=4
autocmd FileType yaml,yml setlocal shiftwidth=2 softtabstop=2 expandtab
au BufRead,BufNewFile */playbooks/*.yml set filetype=yaml.ansible
" Return to last edit position when opening files (from amix's vimrc)
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif