storage.vim


Ⅰ. 插件描述

A storage opener plugin

Ⅱ. 基本信息

创建日期:  2016-09-19
使用用户:  3
Github星:  8
插件作者:  Shingo Kawamura

Ⅲ. 安装方法

使用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/OBJECT

This 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

s3cmd

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/doc

Development

This repository's spec directory has test code. If you want to run test code, open spec file, 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

添加新评论