No matches has annoying behavior #2

sartak opened this Issue Feb 28, 2012 · 2 comments


None yet

2 participants

sartak commented Feb 28, 2012

It loads vim which throws an error and then has no files loaded.

Error detected while processing command line:
E486: Pattern not found: \vtest
Press ENTER or type command to continue

Instead I'd prefer if viack just stopped, maybe with an error message, if the ack -l returned no files.

tsibley commented Feb 28, 2012

Heh. I just looked into this briefly last Friday since it annoyed me
one too many times. Ideally there'd be a way to tell vim "don't open an
empty buffer if I didn't list any files", but I didn't see one.

I may just have to settle for checking ack -l before passing it to vim.

@tsibley tsibley added a commit that referenced this issue Feb 28, 2012
@tsibley Don't open vim when there are no matches
Fixes [GH #2].
@tsibley tsibley closed this Feb 28, 2012
tsibley commented Feb 28, 2012


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment