The following figure shows that the bash terminal did not have any problems after the event, and this kind of problem occurred when it was replaced by fish, although it did not affect the use.
Fish and bash have different syntax, so you can’t let vim use fish as an external interpreter.
The following is the solutionif &shell =~ '/bin/fish' set shell=/bin/bash endif