Giter VIP home page Giter VIP logo

vim-gista's Introduction

vim-gista

Travis CI AppVeyor Version 2.2.0 Support Vim 7.4 or above MIT License Doc

Screenshot

vim-gista is a plugin for manipulating Gist in Vim. It provide the following features:

  • List gists of a particular lookup
  • List commits of a gist
  • Open a gist as a JSON file
  • Open a file of a gist
  • Post a content of the current buffer
  • Patch a content of the current buffer to a gist
  • Rename files in a gist
  • Remove files in a gist
  • Delete a gist
  • Star/Unstar a gist
  • Folk a gist

Requirements

One of the following is required for communicating with Gist API.

  • Vim compiled with +python (Recommended)
  • cURL
  • wget

To enable fast feching in :Gista-list, you need a Vim compiled with +python or +python3. Note that Vim compiled with +python3 without cURL or wget is not supported for now. The recommended environment is a Vim compiled with +python or a Vim compiled with +python3 with cURL or wget.

Install

Use neobundle.vim or vim-plug as:

" vim-plug
Plug 'lambdalisue/vim-gista'

" neobundle.vim
NeoBundle 'lambdalisue/vim-gista'

" neobundle.vim (Lazy)
NeoBundleLazy 'lambdalisue/vim-gista', {
    \ 'on_cmd': ['Gista']
    \ 'on_func': 'gista#'
    \}

Or install the repository into your runtimepath manually.

Usage

First of all, specify your GitHub username into g:gista#client#default_username. vim-gista support an anonymous access but authorization is strongly recommended due to the GitHub API rate-limit.

After that, execute :Gista list. It will request all your gists and show gista-list window which looks like:

  ┌ API name
  │       ┌ Lookup
  │       │                  ┌ The current mode
  │       │                  │
GitHub:lambdalisue | Mode: updated_at | Press ? to toggle a ma...
- 15/12/31(07:08:22)   [3] test.vi... gistid:bb408da1b3fb100d6c1a
= 15/12/27(17:58:56) * [2] benchma... gistid:c84fe3e0b306a2bc8578
│       │            │  │     │                     │
│       │            │  │     │                     └ GistID
│       │            │  │     └ Description
│       │            │  └ The number of files
│       │            └ Is starred marker (*: starred)
│       └ A created_at/updated_at of the gist (depends on the Mode:)
└ Fetched marker (-: Unfetched, =: fetched)

In gista-list window, you can check the mappings by hitting ?. See :help vim-gista-usage for more detail.

Harmonic plugins

You may want to checkout the following harmonic plugins:

Let me know if you make a harmonic plugin ;-)

For users who use a previous version (v0.1.18)

Most of features, commands, or options are drastically changed from a previous version (v0.1.18). See Migration from v1 to v2 or use v0.1.18 tag for instance.

License

The MIT License (MIT)

Copyright (c) 2014-2016 Alisue, hashnote.net

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

External vital modules used in this plugin

vim-gista is powered by the following external vital modules.

vim-gista's People

Contributors

lambdalisue avatar crazymaster avatar nabetama avatar

Watchers

Fujiwara Takuya avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.