vim: add ansible.yaml rules

feature/symbol-search
bretello 2020-12-06 23:20:21 +01:00
parent 9fe2ec17a6
commit 1b4c259c97
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 2 additions and 0 deletions

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