--color from grep can take always and auto. --color from ack2 is equivalent to always, which cause problems when the output is piped. May I suggest adding auto to ack2's --color.
ack without --color should be equivalent to --color=auto. Ack should not color if it is being piped. It sounds like your problem may be with ack detecting if it's being piped.
--color
from grep can takealways
andauto
.--color
fromack2
is equivalent toalways
, which cause problems when the output is piped. May I suggest addingauto
toack2
's--color
.See more at https://groups.google.com/forum/#!topic/vim_use/Ba1SfjC7J-M.