PageRenderTime 24ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/bundle/grepper/README.md

https://github.com/drmikehenry/vimfiles
Markdown | 85 lines | 58 code | 27 blank | 0 comment | 0 complexity | 90659f7a1daaa193a3586a7c218418ab MD5 | raw file
  1. [![Build Status](https://travis-ci.org/mhinz/vim-grepper.svg?branch=master)](https://travis-ci.org/mhinz/vim-grepper)
  2. <br />
  3. <br />
  4. ![vim-grepper](https://raw.githubusercontent.com/mhinz/vim-grepper/master/pictures/grepper-logo.png)
  5. <br />
  6. <br />
  7. Use your **favorite grep tool**
  8. ([ag](https://github.com/ggreer/the_silver_searcher),
  9. [ack](http://beyondgrep.com), [git grep](https://git-scm.com/docs/git-grep),
  10. [ripgrep](https://github.com/BurntSushi/ripgrep),
  11. [pt](https://github.com/monochromegane/the_platinum_searcher),
  12. [sift](https://sift-tool.org),
  13. [findstr](https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/findstr.mspx),
  14. grep) to start an **asynchronous search**. All matches will be put in a
  15. **quickfix or location list**.
  16. This plugin works with Vim and Neovim on Unix-like systems. It's mostly working
  17. on Windows as well.
  18. _Disclaimer: From my point of view it's feature-complete, so I won't add new
  19. features or put much time into reviewing complex PRs._
  20. ---
  21. - [Prompt](https://github.com/mhinz/vim-grepper/wiki/using-the-prompt): Use
  22. `:Grepper` to open a prompt, enter your query, optionally cycle through the
  23. list of tools, fire up the search.
  24. - [Operator](https://github.com/mhinz/vim-grepper/wiki/using-the-operator): Use
  25. the current visual selection to pre-fill the prompt or start searching right
  26. away.
  27. - [Commands](https://github.com/mhinz/vim-grepper/wiki/using-the-commands):
  28. `:Grepper` supports a wide range of flags which makes it extremely flexible.
  29. All supported tools come with their own command for convenience:
  30. `:GrepperGit`, `:GrepperAg`, and so on. They're all built atop of `:Grepper`.
  31. - [Custom tools](https://github.com/mhinz/vim-grepper/wiki/Add-a-tool): Changing
  32. the behaviour of the default tools is very easy. And so is adding new tools.
  33. ---
  34. _If you like [ack.vim](https://github.com/mileszs/ack.vim) and
  35. [ag.vim](https://github.com/rking/ag.vim), you will love vim-grepper._
  36. ## Documentation
  37. This README is only the tip of the iceberg. Make sure to read `:h grepper` and
  38. [the wiki](https://github.com/mhinz/vim-grepper/wiki) to learn about every
  39. feature.
  40. Example configurations be be found
  41. [here](https://github.com/mhinz/vim-grepper/wiki/example-configurations-and-mappings).
  42. _The truth is out there._
  43. ## Installation
  44. Use your [favorite plugin
  45. manager](https://github.com/mhinz/vim-galore#managing-plugins), e.g.
  46. [vim-plug](https://github.com/junegunn/vim-plug):
  47. Plug 'mhinz/vim-grepper'
  48. If you prefer lazy loading:
  49. Plug 'mhinz/vim-grepper', { 'on': ['Grepper', '<plug>(GrepperOperator)'] }
  50. ## Demo
  51. General usage:
  52. ![vim-grepper](https://github.com/mhinz/vim-grepper/blob/master/pictures/grepper-demo.gif)
  53. Grepping only files currently loaded in Vim:
  54. ![vim-grepper](https://github.com/mhinz/vim-grepper/blob/master/pictures/grepper-demo2.gif)
  55. ## Feedback
  56. If you like this plugin, star it! It's a great way of getting feedback. The same
  57. goes for reporting issues or feature requests.
  58. Contact: [Twitter](https://twitter.com/_mhinz_)