Error after using vim command.

Asked 2 years ago, Updated 2 years ago, 126 views

When I type the following command on Git, I get an error that vim is not a Git command.
How can I make it work without any errors?When I type the following command on another PC, there is no error.
Git uses git for windows.
[Command]

$git vimaaaa.html 

[Error Contents]

 git: 'vim' is not agit command.See'git --help'.

git git-bash

2022-09-30 17:10

2 Answers

By default, git does not have a subcommand named vim, but
The PC that was able to use the subcommand vim is

  • The alias is set.
  • PATH has an executable named git-vim.(Self-made subcommands)

It is possible that

The alias is

$git config --get alias.vim

can be found in the .

git-vim in PATH is available on Windows

>where git-vim

I think you can check it in


2022-09-30 17:10

The git vim command does not exist.Do you mean you want to use vim when editing commit messages?If so,

EDITOR=vim

You can achieve this by setting the environment variables for the .


2022-09-30 17:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.