Vim helpers to encrypt / decrypt Ansible vaults. May use vault-ids that are read from your ansible.cfg. In case ansible.cfg won't found in the way from your current filesystem position, try to use ansible-vault encrypt/decrypt with current shell settings.
:AnsibleVaultEncrypt
- to encrypt vault files:AnsibleVaultDecrypt
- to decrypt vault files
So, you can map these to your leader call, adding next lines to your vim/nvim config:
let mapleader = ","
nmap <Leader>d :AnsibleVaultDecrypt<cr>
nmap <Leader>e :AnsibleVaultEncrypt<cr>