Giter VIP home page Giter VIP logo

vim-snipplr's Introduction

snipplr.vim

Snipplr.vim is frontend for http://www.snipplr.com/ You can open your favoritted snippet or get snippet you specified by ID or URL.

INSTALL

cp plugin/snipplr.vim $HOME/.vim/plugin/
cp syntax/snipplrlist.vim $HOME/.vim/syntax/
copy bin/snipplr.rb to one of the directory in $PATH

SETUP

Create account on http://www.snipplr.com/ You can find API KEY at buttom of "Setting" page.

then save API KEY as ~/.snipplr/api_key

GLOVAL VARIABLE

You can exclusively set path for snipplr.rb in .vimrc

let g:snipplr_rb = '$HOME/.vim/bundle/snipplr/bin/snipplr.rb'

Command

snipplr.rb save snippets once get as ~/.snipplr/db.yml. You can avoid cache with exlamation(!) version command.

SnipplrGet

In opend snippet buffer you can use 'i' to view informatin about that snippet.

:SnipplrGet 1234
:SnipplrGet http://snipplr.com/view/1234/sample

SnipplrList

:SnipplrList
:SnipplrList!

SnipplrFind

To this comman work, you have to install fuzzyfinder

:SnipplrFind
:SnipplrFind!

KeyMapping Example

nnoremap <silent> <Space>sl :<C-u>SnipplrFind<CR>
nnoremap <silent> <Space>sr :<C-u>SnipplrFind!<CR>

TODO

parametarize cache dir and api_key location etc..
query with metadata(tag, user.. etc)
post snippet from vim buffer
more informative syntax highlight with predefined keyword for lang name
dynamically change window height for snipplr list
merge more than one cache data to one cache(which is comvenient for
collabolate with coworker

vim-snipplr's People

Contributors

t9md avatar

Stargazers

 avatar David Navia avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

wliment

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.