Ⅰ. 插件描述
A storage opener pluginⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'blp1526/storage-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'blp1526/storage-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'blp1526/storage-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/blp1526/storage.vim
Ⅳ. 文档说明
# storage.vim
Usage
$ vim s3://BUCKET/OBJECTThis executes s3cmd get s3://BUCKET/OBJECT tempfile, and shows the result as a new buffer.
If you :w[rite], then s3cmd put tempfile s3://BUCKET/OBJECT is executed.
$ vim s3://BUCKET/OBJECT/This executes s3cmd ls s3://BUCKET/OBJECT/, and shows the result as a quickfix window.
Screenshot

Requirement
The s3cmd cli tool, or a same get, put and ls interfafce cli tool.
Option
If you have your favorite cli tool which provides the same interface as s3cmd, then you can add below line to your .vimrc.
let g:storage_vim_cmd = 'command_name'
# default 'command_name' 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/docDevelopment
This repository's spec directory has test code. If you want to run test code, open spec file, and exec source %.
Contributing
- 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