I do
find $HOME -type f -name "*.tex" -exec grep -il "$1" {} + | vim -
I cannot exit vim with q
only because it gives the error which I do not understand why
E37: No write since last change (add ! to override)
So you have to do q!
instead.
However, I would like to let Vim know that there is nothing to override and use instead q
. So probably, it could be reached by altering the find
command.
How can you find
such that Vim knows there is no need of overriding?