search

Home  >  Q&A  >  body text

macos - Problem opening vim in fish terminal

As shown below, there was nothing wrong with the bash terminal before. However, this problem occurred after switching to fish, although it does not affect the use.

PHP中文网PHP中文网2743 days ago700

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 16:41:02

    The syntax of fish and bash are different, so you can't let vim use fish as an external interpreter
    Here is the solution

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

    reply
    0
  • Cancelreply