Update for 2019, 16" MacBook Pro running Catalina 10.15.2:
start Photos, let it continue past the first dialogue box;
now Preferences in the app menu is clickable (it wasn't before);
Preferences > General , and untick both check boxes in Memories;
This stops photoanalysisd cold, no reboot or kill required.
There are two problems.
Firstly: color management is an integral part of MacOS's graphics engine.
"Active color management is a dynamic process, applied to every pixel
in real time on every frame. For each pixel, a color match is performed
from the source content's profile space to the destination space,
possibly with an intermediate space or ...
Watching your tab titles in the GIF, it looks like you're using Move Tab Left, which is moving the tab you opened vim in to the left.
What you need is Select Previous Tab to change tabs, or even CMD-1 to move to tab1, etc.