Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
cappyzawa committed Apr 15, 2019
1 parent 8ab50d2 commit dcf3d40
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
# vault.nvim
# vault.nvim
utilities to operate vault

## Required
* nvim 0.4.0++
## Installation
To install using [Vim-Plug](https://github.com/junegunn/vim-plug):
```
" add this line to your .vimrc file
Plug 'cappyzawa/vault.nvim'
```
## Supported commands
|Command|Description|
|:---|:---|
|VaultPathPrefix|set your secret path's prefix.|
|VaultField|set your secret's field. default:`value`.|
|VaultRead|`vault read -field <field> <path_prefix>/<selected string>`|

## Key mappings
If `g:vault_no_default_mappings` is not set to `v:true`, this plugin also defines following default mapping.

|Map|Key|Command|
|:---:|:---:|:---|
|nmap|<Leader\>vpp|VaultPathPrefix|
|nmap|<Leader\>vf|VaultField|
|xmap|<Leader\>vr|VaultRead|
|nmap|<Leader\>vr|VaultRead|

`VaultRead` reads the secret of the selected string and displays it in the popup window.(xmap)

When popup is open, execute `VaultRead` to close it.(nmap)


0 comments on commit dcf3d40

Please sign in to comment.