From 96be0be1240a848da56d665b38e1b0fe7ee3f1af Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 11 Nov 2020 15:57:22 -0500 Subject: [PATCH] Clean up the README Signed-off-by: James McCoy --- README.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1bdee87..d93d3f6 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,21 @@ undofile to increase security. ## Installation -Copy the `gnupg.vim` file to the `$HOME/.vim/plugin` directory. Refer to `:help -add-plugin`, `:help add-global-plugin` and `:help runtimepath` for more details -about Vim plugins. +Use your favorite [plugin manager](https://github.com/mhinz/vim-galore#managing-plugins). + +For manual installation, use either +[pathogen](https://github.com/tpope/vim-pathogen) (for old Vim versions) or +Vim's [packages](https://vimhelp.org/repeat.txt.html#packages). + +### pathogen + +Clone or unpack into `$HOME/.vim/bundle` + +### Vim package + +Clone or unpack into `$HOME/.vim/pack/gnupg/start/` + +## GPG Agent From `man 1 gpg-agent`: @@ -27,6 +39,8 @@ From `man 1 gpg-agent`: Most distributions provide software to ease handling of gpg and gpg-agent. Examples are keychain or seahorse. +## Reacting to opening an encrypted file + If there are specific actions that should take place when editing a GnuPG-managed buffer, an autocmd for the User event and GnuPG pattern can be defined. For example, the following will set `textwidth` to 72 for all