Giter VIP home page Giter VIP logo

howdoi-vim's Introduction

Installation

With Vim-plug add this to your .vimrc:

Plug 'vmchale/howdoi-vim' , {'do' : './install.sh' }

With Vundle simply add this to your .vimrc:

Plugin 'vmchale/howdoi-vim'

If you use vundle you'll have to install howdoi manually, e.g. with

pip install howdoi

The advantage of this plugin is that it does not require a vim compiled with +python, so you don't have to go outside your distro to get it. Of couse, you'll need to install howdoi as well. If you have pip, this is as simple as typing:

pip install howdoi

Usage

By default, howdoi-vim provides one command:

:Howdoi 'SEARCH TERMS'

Press q to exit when it displays the code content of your project.

You can also set g:howdoi_num to set the number of answers to return by default, and g:howdoi_options to access other options from the command line, e.g.

let g:howdoi_num=3

howdoi-vim's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

battbeach

howdoi-vim's Issues

command injection

You could (even accidentally) inject commands directly executed in the shell.

Try for example:

:Howdoi open a file in php \' | wc -l ; echo \'

These may even happen for someone looking for

:Howdoi correctly use the escape symbol \'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.