From 4ccc92ca7d70b3eb14c0697ae3fb7caf05747474 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Fri, 21 Nov 2014 13:00:14 -0800 Subject: [PATCH] Fish shell fix in vimrc --- home/.vimrc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/home/.vimrc b/home/.vimrc index 780915c..2002725 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -1,6 +1,11 @@ " vimrc, http://sh.kirsle.net/ " Last Modified 2013/09/27 +" https://www.mail-archive.com/fish-users@lists.sourceforge.net/msg01425.html +if $SHELL =~ 'bin/fish' + set shell=/bin/bash +endif + set encoding=utf8 " Unicode support set nocompatible " use vim defaults set background=dark " my terminal has a black background @@ -139,12 +144,3 @@ let perl_extended_vars = 1 " expand tabs for python code autocmd BufRead,BufNewFile *.py set expandtab - -""""""""""""""""""""""""""""""""" -""" Compatibility with fish shell -""""""""""""""""""""""""""""""""" - -" https://www.mail-archive.com/fish-users@lists.sourceforge.net/msg01425.html -if $SHELL =~ 'bin/fish' - set shell=/bin/bash -endif