I discovered some days ago that encryption functionality was removed in Neovim, it's great to have a full featured plugin like [vim-gnupg][1] but for anyone who wants to go for a minimalist solution to integrate back the encryption functionality in Neovim:

    augroup gpg_files
      autocmd!
      autocmd BufReadPre,FileReadPre *.gpg setlocal shada= noswapfile noundofile nobackup
      autocmd BufRead *.gpg %!gpg -qd %
      autocmd BufWriteCmd *.gpg write !gpg --batch --yes -co %
    augroup END

This configuration seems to not require any additional environment variables.

PS. Of course this is only for an exclusive use of symmetric cipher encryption, which is my use case, trying to bring back the removed `:X` functionality in Neovim.


  [1]: https://github.com/jamessan/vim-gnupg