Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Ag plugin for Vim

📅 2014-Jun-11 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

[caption id="attachment_6448" align="aligncenter" width="678"][Results of a search using Ag displayed in Vim](https://codeyarns.files.wordpress.com/2014/06/20150323_ag.png) Results of a search using Ag displayed in Vim[/caption]

Ag is an useful tool for programmers to search for text in source files. If you use Vim as your editor, you may want to use Ag to search and directly jump to the files and lines containing the text. The Ag plugin for Vim does exactly this!

I like to clone its repository and use Pathogen to install it:

$ git clone https://github.com/rking/ag.vim

Tried with: Vim 7.4 and Ubuntu 14.04