# error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option.

**Code:** `error: There was a problem with the editor 'vi'` · **Category:** Git · **Seen on:** Git

Git couldn't open your configured editor to collect a message or todo list.

## Meaning

The editor isn't installed or it's a GUI that exits immediately. Set `core.editor` (use `--wait` for VS Code) or pass `-m`.

## Common causes

- Editor not installed
- GUI editor without wait flag
- Non-interactive shell

## Quick fix

1. `git config --global core.editor "code --wait"`
2. Install vim/nano
3. Provide `-m` for commit messages

## Detailed fix by platform

### Git

1. `git config --global core.editor "code --wait"`

## How to diagnose

1. **Editor** — installed?
2. **Flag** — --wait?
3. **Shell** — interactive?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/git/rebase-interactive-editor-failed)
