morinatsu / vim-howdoi

A Vim frontend for howdoi, the awesome command line tool that lets you ask what you need and grabs the snippet of code from SO.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-howdoi

Build Status

A Vim frontend for howdoi, the awesome command line tool that lets you ask what you need and grabs the snippet of code from SO.

Features

  • Type your query and enter <CTRL-H> to get the code!
  • You can also use the plugin's menu entry under GUI
  • Overwrite the default mapping with map <WhatYouWant> <Plug>Howdoi

Requirements

Install howdoi if you haven't:

pip install howdoi

Installation

Pathogen

Clone this repository in your ~/.vim/bundle directory:

git clone https://github.com/laurentgoudet/vim-howdoi.git

Using vundle

Add this to your ~/.vimrc file:

Bundle 'laurentgoudet/vim-howdoi.git'

Then, from the command line, run:

vim +BundleInstall +qall

Manually

Clone the plugin into a seperate directory:

cd ~/.vim
git clone https://github.com/laurentgoudet/vim-howdoi.git bundle/vim-howdoi

Add to your ~/.vimrc:

set runtimepath^=~/.vim/bundle/vim-howdoi

Usage

  1. Write what your are looking for
  2. Press <CTRL-H> to get the code!

Troubleshooting

You'll maybe need LXML2 apt-get install python-lxml if howdoi compilation fails.

License

This plugin is released under the WTFPLv2 License.

About

A Vim frontend for howdoi, the awesome command line tool that lets you ask what you need and grabs the snippet of code from SO.

License:Do What The F*ck You Want To Public License


Languages

Language:Vim Script 92.9%Language:Ruby 4.7%Language:Shell 2.5%