Skip to content

Vim plugin that allows for encryption/decryption of ansible-vault secrets in YAML files.

License

Notifications You must be signed in to change notification settings

ktindall-godaddy/vim-vault-inline

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-vault-inline

Installation

Use your plugin manager of choice.

  • Pathogen
    • git clone https://github.com/rm-you/vim-vault-inline ~/.vim/bundle/vim-vault-inline
  • Vundle
    • Add Bundle 'https://github.com/rm-you/vim-vault-inline' to .vimrc
    • Run :BundleInstall
  • NeoBundle
    • Add NeoBundle 'https://github.com/rm-you/vim-vault-inline' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug
    • Add Plug 'https://github.com/rm-you/vim-vault-inline' to .vimrc
    • Run :PlugInstall

Usage

Set the variable ANSIBLE_VAULT_PASSWORD_FILE in your environment to the absolute path of your ansible-vault password file.

Use the command :VaultEncryptionToggle when the cursor is inside a multi-line yaml block. The author recommends adding a binding to your vimrc, like:

nmap ,v :VaultEncryptionToggle<CR>

Todo

  1. Write tests
  2. Write documentation

About

Vim plugin that allows for encryption/decryption of ansible-vault secrets in YAML files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.7%
  • Vim Script 16.3%