gitui-org/gitui

Vim is not available as external editor on windows

Open

#1.316 geöffnet am 7. Sept. 2022

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (721 Forks)batch import
bugdormantgood first issuehelp wanted

Repository-Metriken

Stars
 (21.937 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 41T 9h) (6 gemergte PRs in 30 T)

Beschreibung

Thanks for gitui, it makes my daily life easier=)

There is, however, one thing that seems break my current flow - I can not launch vim from within gitui.

Describe the bug Vim is not available as external editor

To Reproduce Steps to reproduce the behavior:

  1. Navigate to a repo with modified files, run gitui
  2. Chose a file with modifications
  3. Hit 'e' button to edit this file
  4. A "popup" appears:
failed to launch editor:
"vim": program not found

Same bug observed when trying to '^e'dit commit message in external editor.

Expected behavior A vim instance with selected file loaded.

Context (please complete the following information):

  • OS/Distro + Version: win10 (build 21H2-19044.1889)
  • GitUI Version 0.21.0
  • Running in WindowsTerminal and pwsh-7.2.6
  • both vim and gitui are installed via chocolatey

Additional context vim is present in path:

PS1> where.exe vim
C:\Windows\vim.bat

and git is configured to use vim

git config  -l | rg editor
core.editor=vim

Contributor Guide