Skip to content

Commit dcf3d40

Browse files
author
cappyzawa
committed
add README
1 parent 8ab50d2 commit dcf3d40

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

README.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,33 @@
1-
# vault.nvim
1+
# vault.nvim
2+
utilities to operate vault
3+
4+
## Required
5+
* nvim 0.4.0++
6+
## Installation
7+
To install using [Vim-Plug](https://github.com/junegunn/vim-plug):
8+
```
9+
" add this line to your .vimrc file
10+
Plug 'cappyzawa/vault.nvim'
11+
```
12+
## Supported commands
13+
|Command|Description|
14+
|:---|:---|
15+
|VaultPathPrefix|set your secret path's prefix.|
16+
|VaultField|set your secret's field. default:`value`.|
17+
|VaultRead|`vault read -field <field> <path_prefix>/<selected string>`|
18+
19+
## Key mappings
20+
If `g:vault_no_default_mappings` is not set to `v:true`, this plugin also defines following default mapping.
21+
22+
|Map|Key|Command|
23+
|:---:|:---:|:---|
24+
|nmap|<Leader\>vpp|VaultPathPrefix|
25+
|nmap|<Leader\>vf|VaultField|
26+
|xmap|<Leader\>vr|VaultRead|
27+
|nmap|<Leader\>vr|VaultRead|
28+
29+
`VaultRead` reads the secret of the selected string and displays it in the popup window.(xmap)
30+
31+
When popup is open, execute `VaultRead` to close it.(nmap)
32+
33+

0 commit comments

Comments
 (0)