vim-vault


Ⅰ. 插件描述

A plug-in for managing secret information (primarily credentials) within Vim.

Ⅱ. 基本信息

创建日期:  2014-04-12
使用用户:  7
Github星:  32
插件作者:  Aaron Bieber

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'aaronbieber/vim-vault'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'aaronbieber/vim-vault'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'aaronbieber/vim-vault'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/aaronbieber/vim-vault

Ⅳ. 文档说明

Vault

Vault is a plug-in designed to allow you to very easily and simply manage a
list of credentials within Vim. Included is a straightforward syntax file
providing a basic structure for blocks of credentials utilizing Vim's
"conceal" feature to hide passwords from prying eyes.

Vault is meant to be used to manage files that are encrypted using Vim's
built-in blowfish encryption (the 'cryptmethod' setting is defaulted to
"blowfish" in *.vault files), although you are welcome to use any other
on-disk encryption mechanism or simply assume that nobody will ever get their
hands on your password file. That part is up to you.

Getting Started

To begin using Vault, you need to create a credentials file. Simply edit a
file with a '.vault' extension, or set the filetype of any file to "vault".
The basic structure of vault files is as follows:

  • Sections are simply labels identifying groups of credentials. They are
    identified by any text ending with a colon.
  • Actual credentials begin with double equal signs, similar to Markdown
    syntax.
  • Items within credential blocks can include free-form text, lists of
    items beginning with asterisks (*), hyphens (-), or numbers, and most

importantly some usernames and passwords. Any items beginning with
bracketed words will get special syntax highlighting.

Here is an example of what a couple of credentials blocks might look like:

Web sites:
  == Github
    [URL] https://www.github.com
    [Username] user@domain.com
    [Password] {rockyroad5!}
  == Facebook
    [URL] https://www.facebook.com
    [Username] user@domain.com
    [Password] {soc14lbu77erfly}
    * Password last changed 2014-04-01

Feel free to format data within credential blocks in any way you desire.
Secrets should be enclosed within braces (as demonstrated by the password
above). If your Vim is compiled with "conceal" support, the contents of braces
will be obscured, replaced by a single asterisk. You can toggle the
concealment of information on the current line by pressing <Return>, but even
when the text is concealed you can still yank it, allowing you to grab your
password without onlookers even seeing it.

添加新评论