vim-pizza


Ⅰ. 插件描述

My initial attempt at trying to order pizza from within vim.

Ⅱ. 基本信息

创建日期:  2017-12-01
使用用户:  1
Github星:  411
插件作者:  Arithran Thurairetnam

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'arithran/vim-pizza'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'arithran/vim-pizza'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'arithran/vim-pizza'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/arithran/vim-pizza

Ⅳ. 文档说明

## Description
My initial attempt at trying to order pizza from within Vim.

But Why?

After a long day's work of coding, you feel exhausted and all you want to do
is eat pizza. But since you are a Vim user you wish that you had a key-binding
within Vim to open your computer browser, point it at your favourite pizza and
make an order.

Also, you can brag about Vim ordering pizza at work (the real reason for
developing this plug-in).

Usage

:OrderPizza

**If you are always hungry, add the following to your .vimrc to bind a key
like F5**

nnoremap <F5> :OrderPizza<CR>

**I always order Papa John's Pan Cheese, but this plug-in always takes me to
the Pizza Hut homepage** (It can be any pizza URL you visit frequently)

let g:pizza#default_pizzeria ='https://www.papajohns.com/order/builder/productBuilderInfo?productGroupId=pan-cheese&productSKU.sku=1-296-3-83&quantity=1'

Checkout :help pizza for more information.

Installation

This plugin follows the standard runtime path structure, and as such it can be
installed with a variety of plugin managers:

Plugin ManagerInstall with...
NeoBundleNeoBundle 'arithran/vim-pizza'
VundlePlugin 'arithran/vim-pizza'
PlugPlug 'arithran/vim-pizza'
Pathogengit clone https://github.com/arithran/vim-pizza ~/.vim/bundle
ManualCopy all of the files into your ~/.vim directory

License

Licensed under the MIT License.

Want to collaborate?

I would like to create menus within Vim and integrate the plug-in with 3rd
party APIs in the near future. Help is appreciated, PM me.

添加新评论