setup /usr/bin/vi as default core.editor
i fixed core.editor for root and pi users