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.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 3 commits ahead of laurentgoudet:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
plugin
.gitignore
LICENSE
README.md
vim-howdoi.gif

README.md

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.

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

You must also have vim compiled with +python support. You can check that using the command:

vim --version | grep +python

Vim package in Ubuntu and it's derivatives comes with +python support.

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.