Skip to content

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

Notifications You must be signed in to change notification settings

laurentgoudet/vim-howdoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published