Open vim problem under fish terminal

  question, vim

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 solution

if &shell =~ '/bin/fish'
 set shell=/bin/bash