'git shell command doesn't work with IdeaVim

I'm using intelliJ for IDE and installed IdeaVim. I'm trying to execute git status inside vim but it didn't work and nothing to show.

:! git --help and :! ls -al work

:! cd / doesn't work and showing the following error message.

Cannot run program "cd": error=2, No such file or directory.

Can I use git command on shell inside vim? Anyone can help me? Thank you in advance.



Solution 1:[1]

From the IdeaVim reference manual:

==============================================================================
5. EX commands                                  *ex-cmd-index*

This is a brief but complete listing of all the ":" commands, without
mentioning any arguments.  The optional part of the command name is inside [].
The commands are sorted on the non-optional part of their name.

tag           command         action ~
------------------------------------------------------------------------------
|:display|      :di[splay]      display registers
|:registers|    :reg[isters]    display the contents of registers
|:substitute| :s[ubstitute] find and replace text

The "brief but complete" suggests that these are the only three supported Ex-mode commands in IdeaVim.

Solution 2:[2]

The question was asked four years ago, but it still seems somewhat relevant

I am using IdeaVim with PyCharm 2021.2, and was having similar problems because the shell you get by default with !! is a dos cmd shell.

So instead of cd try dir.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 gmarmstrong
Solution 2 Darrel Lee