On Mon, Jan 10, 2011 at 4:08 PM, Michael Kirk
<michael.john.k...@gmail.com> wrote:
> When I open a ruby file
>
> fish$ vim File.rb
> Error detected while processing /usr/share/vim/vim73/ftplugin/ruby.vim:
> line 83
>
>>>>>>> /usr/share/vim/vim73/ftplugin/ruby.vim
>  80     if &shellxquote == "'"
>  81       let s:ruby_path = system('ruby -e "' . s:code . '"')
>  82     else
>  83       let s:ruby_path = system("ruby -e '" . s:code . "'")
>  84     endif
>
> I'm using fish as my shell.
>
> I'm not sure of the repercussions of this error, vim starts more-or-less 
> normally after a bit.

Vim uses POSIX-compatible syntax for running commands in the shell
(unless using one of the few non-POSIX shells it recognizes).
Obviously, Fish strays fairly far from POSIX so your best bet it to tell
Vim to use a different shell.  It may be possible to tweak the
shell-related options (like 'shellxquote', 'shellquote', etc.) but it's
easier just to change the shell.  Here's what I used to have in my vimrc
when I used fish:

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

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@debian.org>



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to