Skip to content

blp1526/storage.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

storage.vim

storage.vim

Usage

$ 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.

Requirement

s3cmd or aws-cli

Option

let g:storage_vim_cmd = 'aws s3'

Default g:storage_vim_cmd is s3cmd.

Installation

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

Development

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 %.

Contributing

  1. Fork it ( https://github.com/blp1526/storage.vim/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

A storage opener plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published