mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
20
README.md
20
README.md
@@ -9,9 +9,21 @@ undofile to increase security.
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Copy the `gnupg.vim` file to the `$HOME/.vim/plugin` directory. Refer to `:help
|
Use your favorite [plugin manager](https://github.com/mhinz/vim-galore#managing-plugins).
|
||||||
add-plugin`, `:help add-global-plugin` and `:help runtimepath` for more details
|
|
||||||
about Vim 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`:
|
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.
|
Most distributions provide software to ease handling of gpg and gpg-agent.
|
||||||
Examples are keychain or seahorse.
|
Examples are keychain or seahorse.
|
||||||
|
|
||||||
|
## Reacting to opening an encrypted file
|
||||||
|
|
||||||
If there are specific actions that should take place when editing a
|
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
|
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
|
defined. For example, the following will set `textwidth` to 72 for all
|
||||||
|
|||||||
Reference in New Issue
Block a user