Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laurentgoudet/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.
https://github.com/laurentgoudet/vim-howdoi
Last synced: 1 day ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/laurentgoudet/vim-howdoi
- Owner: laurentgoudet
- License: wtfpl
- Created: 2013-12-27T06:10:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-31T11:05:08.000Z (over 7 years ago)
- Last Synced: 2024-08-02T05:13:25.239Z (3 months ago)
- Language: VimL
- Size: 188 KB
- Stars: 96
- Watchers: 2
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-howdoi
A Vim frontend for [howdoi][1], 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 `` to get the code!
* You can also use the plugin's menu entry under GUI
* Overwrite the default mapping with `map Howdoi`# Requirements
Install [howdoi][1] if you haven't:
```bash
pip install howdoi
```You must also have vim compiled with +python support. You can check that using the command:
```bash
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:
```bash
git clone https://github.com/laurentgoudet/vim-howdoi.git
```## Using vundle
Add this to your `~/.vimrc` file:
```vim
Bundle 'laurentgoudet/vim-howdoi.git'
```Then, from the command line, run:
```bash
vim +BundleInstall +qall
```## Manually
Clone the plugin into a seperate directory:
```bash
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 `` to get the code!# Troubleshooting
You'll maybe need LXML2 `apt-get install python-lxml` if [howdoi][1] compilation fails.
# License
This plugin is released under the [WTFPLv2 License][2].
[1]: https://github.com/gleitz/howdoi
[2]: http://www.wtfpl.net/txt/copying/