lzf7ig
Last Updated: February 25, 2016
·
6.834K
· dmedvinsky

Using Vim with fish shell

Switched to fish as your login shell? Can't use Vim afterwards? Getting weird error messages when running Vim?

Add this line to your .vimrc:

set shell=/bin/bash

And you're good to go.

4 Responses
Add your response

4196

Wooooo thank a LOT !

any ways, i think this is a quite better:

if $SHELL =~ 'bin/fish'
set shell=/bin/sh
endif

over 1 year ago ·
15523

Vim supports Fish since 7.4-276

over 1 year ago ·
16468

@gpakosz Whaaaaat?!?! I have to remove that dreaded line from my vimrc and try that out!

over 1 year ago ·
17408

I should probably compile my own Vim. I was awaiting Ubuntu 14.10 to see if it would be in there, but this is what I see:

$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 20 2014 16:09:34)
Included patches: 1-273
over 1 year ago ·
Filed Under