I told Mercurial to use vim as default editor:
[ui]
editor = /opt/local/bin/vim
The referenced vim was installed via MacPorts:
$ port installed | grep vim
vim @8.0.0596_0+huge (active)
When calling vim on the command line, I also end up at the one installed via MacPorts:
$ which vim
/opt/local/bin/vim
When I want to diff a file using Mercurial, I get some strange errors according to missing color none:
Error detected while processing function AnsiEsc#AnsiEsc:
line 527:
E254: Cannot allocate color none
Press ENTER or type command to continue
I don't have a clue where this is coming from. My first idea was the last installed plugin. I removed it, but nothing changed. Then I poked around my .vimrc, also without success. Also moving ~/.vimrc and ~/.vim to have a more or less vanilla vim didn't help. So now I'm stuck.
:scriptnames
doesn't contain AnsiEsc and looking for it via find
also didn't give a result. Also grep
ing for it in the folders that scriptnames
told to contain scripts didn't produce a match.
How to get rid of this error message? What is AnsiEsc (if ?not? a vim plugin), who uses it and why? Or how can I find out why vim is loading AnsiEsc and why it has this error?