$ vim s3://BUCKET/OBJECT/
This executes s3cmd ls --recursive s3://BUCKET/OBJECT/
or aws s3 ls --recursive s3://BUCKET/OBJECT/
, and shows the result as a quickfix window.
$ vim s3://BUCKET/OBJECT
This executes s3cmd get --force s3://BUCKET/OBJECT tempfile
or aws s3 cp s3://BUCKET/OBJECT tempfile
, and shows the result as a new buffer.
If you :w[rite]
, then s3cmd put tempfile s3://BUCKET/OBJECT
or aws s3 cp tempfile s3://BUCKET/OBJECT
is executed.
let g:storage_vim_cmd = 'aws s3'
Default g:storage_vim_cmd is s3cmd.
Use your favorite plugin manager, or
# at terminal
$ git clone https://github.com/blp1526/storage.vim.git ~/.vim/bundle/storage.vim
# at .vimrc
set runtimepath^=~/.vim/bundle/storage.vim
# at Vim
:helptags ~/.vim/bundle/storage.vim/doc
This repository's
spec directory has
test code. If you want to run test code, open spec file with
vim --clean spec/storage_spec.vim
, and exec source %
.
- Fork it ( https://github.com/blp1526/storage.vim/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request