Vim plugin for encrypt/decrypt sops files on the fly without leaving your vi session
require +clientserver
in your vim (check it with vi --version
)
take care that wildignore doesn't have /tmp otherwise this will not work
sops use tmp to store temporary decrypted files. check with
set wildignore?
git clone https://github.com/jsecchiero/vim-sops.git ~/.vim/pack/plugins/start/vim-sops
sops files can vary in extension and filename, the default file are "{sops-*,*.sops,*secret*}"
let g:sops_files_match = "{sops-*,*.sops,*secret*}"
you can specify a env at runtime in vim with:
let $AWS_PROFILE="admin-prod"