Coder Social home page Coder Social logo

Comments (5)

ku1ik avatar ku1ik commented on August 15, 2024

@rking just put following in your .vimrc:

let g:ackprg = 'ag --nogroup --nocolor --column'

Works fine for me.

from ack.vim.

rking avatar rking commented on August 15, 2024

https://github.com/rking/ag.vim#readme

from ack.vim.

janbaer avatar janbaer commented on August 15, 2024

I tried to use ag instead of ack with activating the config from @rking and I tried also the config with --vimgrep but whenever I activate it, it finds nothing. When I undo my changes and use ack instead it works fine. Ag works fine from the command line, so I don't see where the problem could be. Any tips, how I could find out, why I get no search results with using ag in VIM?

from ack.vim.

ches avatar ches commented on August 15, 2024

@janbaer When enabling let g:ackprg = 'ag --vimgrep' and saying you get no results, are you running it from a project with a version control system?

Common problem: ag walks up the directory structure looking for files like .gitignore and tries to use them; if your home directory is a Git repo (for your personal config files) that ignores everything not explicitly/forcefully added, then you run ag in some subdirectory of your home dir that is not a VCS repo itself, you'll be implicitly ignoring everything. Try adding --skip-vcs-ignores or --unrestricted to debug.

from ack.vim.

janbaer avatar janbaer commented on August 15, 2024

I'm not sure why, but it's working now, aaaand it's blazing fast...

from ack.vim.

Related Issues (20)

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.