Edit Rails Credentials with Neovim
These instructions will allow you to edit your Rails credentials file using your Neovim editor. To use a different editor, replace "nvim" with the editor of your choice. See how to edit Rails credentials with nano editor here.
You can edit your Rails credentials file in Neovim with the following command:
EDITOR="nvim --wait" rails credentials:edit
This command will open the file for editing in Neovim and wait until the file is saved before saving and encrypting the encrypted version of the file.
When done making your changes, return to Visual mode (press Escape) and enter :wq
to save the changes and quit Neovim.
Rails will then encrypt and save the changes to the encrypted version of the file.