Skip to content

Commit e19771b

Browse files
committed
initial version
0 parents  commit e19771b

File tree

7 files changed

+139
-0
lines changed

7 files changed

+139
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/doc/tags

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# vim-vaultproject CHANGELOG
2+
3+
## Version 1.0.0 (April 29, 2015)
4+
5+
* Initial release

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Contributing To My Vim Plugins
2+
3+
I'm not a Vim wizard by any means, nor am I too proud to accept
4+
contributions that improve my code, so if you think you have a problem,
5+
improvement, or other contribution towards the betterment of Vim-kind,
6+
please file an issue or, where appropriate, a pull request.
7+
8+
When filing an issue, please explain exactly what's wrong in as much
9+
detail as you can, and try not to insult me in doing so. "It doesn't
10+
work, fix it" or "It doesn't work, you're an idiot" are not helpful
11+
issues. "I try to do this, I expect this, but I get that" or "I think you
12+
missed a step here in line 32" are better. Keep in mind that I'm not
13+
paid to write Vim plugins, so I'm doing this in my spare time, which
14+
means it might take me a while to respond. If you're not satisfied with
15+
my response to your problem with my free (as in beer and in speech)
16+
software, I will give you triple your $0.00 back.
17+
18+
When filing a pull request, please explain what you're changing and why.
19+
Please limit your changes to the specific thing you're fixing; it's
20+
probably easiest for both of us if you isolate your change in a topic
21+
branch that I can merge without pulling in other stuff. Please do not
22+
update CHANGELOG, versions, etc.; I'll take care of that. I'll also add
23+
you to the Credits list with my thanks.
24+
25+
All of my Vim plugins use the MIT license. If you submit a pull request,
26+
I'll assume you are OK with any code you add being placed under that
27+
same MIT license. If this is not the case for any reason, please let me
28+
know why you can't tolerate the MIT license. I am 99.99% likely to
29+
reject your change in that case, but I'll let you have your say.
30+
31+
Thanks for contributing!

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright 2015 Mark Cornick
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# vim-vaultproject
2+
3+
This plugin adds a `:Vault` command that runs [vault](http://vaultproject.io),
4+
with tab completion of subcommands.
5+
6+
This plugin is called "vim-vaultproject" because "vault" is a very
7+
generic term and I didn't want to squat on it.
8+
9+
## Installation
10+
11+
With [pathogen.vim](https://github.com/tpope/vim-pathogen) just do:
12+
13+
cd ~/.vim/bundle
14+
git clone git://github.com/markcornick/vim-vaultproject.git
15+
16+
If you prefer to use something besides pathogen, go ahead.
17+
18+
## Credits
19+
20+
Written by Mark Cornick <mark@cornick.io>. MIT license.

doc/vaultproject.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*vaultproject.txt* basic vim/vault integration
2+
3+
Author: Mark Cornick <https://github.com/markcornick>
4+
License: MIT license
5+
Repo: https://github.com/markcornick/vim-vaultproject
6+
7+
COMMANDS *vaultproject*
8+
9+
This command is only available if vault is in your PATH.
10+
11+
*vaultproject-:vault
12+
:Vault [args] Invoke an arbitrary vault command.
13+
14+
vim:tw=78:et:ft=help:norl:

plugin/vaultproject.vim

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
" vaultproject.vim - basic vim/vault integration
2+
" Maintainer: Mark Cornick <https://github.com/markcornick>
3+
4+
if exists("g:loaded_vaultproject") || v:version < 700 || &cp || !executable('vault')
5+
finish
6+
endif
7+
let g:loaded_vaultproject = 1
8+
9+
function! s:commands(A, L, P)
10+
return join([
11+
\ "audit-disable",
12+
\ "audit-enable",
13+
\ "audit-list",
14+
\ "auth",
15+
\ "auth-disable",
16+
\ "auth-enable",
17+
\ "delete",
18+
\ "help",
19+
\ "init",
20+
\ "mount",
21+
\ "mounts",
22+
\ "policies",
23+
\ "policy-delete",
24+
\ "policy-write",
25+
\ "read",
26+
\ "remount",
27+
\ "renew",
28+
\ "revoke",
29+
\ "seal",
30+
\ "server",
31+
\ "status",
32+
\ "token-create",
33+
\ "token-renew",
34+
\ "token-revoke",
35+
\ "unmount",
36+
\ "unseal",
37+
\ "version",
38+
\ "write"
39+
\ ], "\n")
40+
endfunction
41+
42+
augroup vaultproject
43+
autocmd!
44+
autocmd VimEnter *
45+
\ command! -nargs=+ -complete=custom,s:commands Vault execute '!vault '.<q-args>
46+
augroup END
47+
48+
" vim:set et sw=2:

0 commit comments

Comments
 (0)