I am able to do git log --pretty=format:"%h" --after="2018-06-7" --until="2018-06-10", in the shell, but if I try to do it in vim with fugitive like this: :Glog --after="2018-6-7" --until="2018-06-10" -- nothing happens (the quickfix window is empty). Am I passing the parameters incorrectly or is this not supported?

1 Answer 1


Try to remove the quotes in your command. The double quote character is the start of a comment in vimscript. See help :comment. So you should use :Glog --after=2018-6-7 --until=2018-6-10 instead.

For the future: If you need to give a quoted string to a vim command you can try ' instead of " that might work better in general.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.