Ⅰ. 插件描述
gnupg.vim (from http://gitorious.org/vim-gnupg)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'robertkrimen/vim-gnupg'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'robertkrimen/vim-gnupg'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'robertkrimen/vim-gnupg'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/robertkrimen/vim-gnupg
Ⅳ. 文档说明
This is a fix to gnupg.vim that allows the use of gpg-agent with pinentry-curses
If this fits your use case, then set g:GPGPrimeAgent to 1 in your .vimrc to
enable priming of gpg-agent:
let g:GPGPrimeAgent = 1
http://gitorious.org/vim-gnupg/vim-gnupg
vim-gnupg
This script implements transparent editing of gpg encrypted files. The
filename must have a ".gpg", ".pgp" or ".asc" suffix. When opening such
a file the content is decrypted, when opening a new file the script will
ask for the recipients of the encrypted file. The file content will be
encrypted to all recipients before it is written. The script turns off
viminfo and swapfile to increase security.