5 ms·
There is already a ag plugin for vim that will jump you to the matches. See: https://github.com/rking/ag.vim https://github.com/rking/ag.vim or see: http://co
by maerF0x0 10y ago
There is already a ag plugin for vim that will jump you to the matches.
See: https://github.com/rking/ag.vim https://github.com/rking/ag.vim
or see: http://codeinthehole.com/writing/using-the-silver-searcher-with-vim/ http://codeinthehole.com/writing/using-the-silver-searcher-w...
- aykamko 10y agoYes, you're right! I mention this in my README: > Inside vim, vim-grepper or ag.vim is probably the way to go. Outside vim (or inside a Neovim :terminal), tag is your best friend.
- johncoltrane 10y agoNo, the way to go is to set the `grepprg` option.
- akavel 10y agoAnd in case you need more flexibility juggling one-off calls to various similar tools, try: :cex system('grep_or_ag_or_whatever -flags pattern') | copen With proper ':set errorformat=...', you can call your compiler with this, or 'go test', or much more various stuff (even Go panic stacktraces).
- Gonzih 10y agoYou can also use ag with unite.vim.
- RBerenguel 10y agoAnd helm (the... well, not sure what's the actual name of what helm does, it's an emacs plugin) has an ag plugin so you can search and jump to matches