sillybun / vim-repl

Best REPL environment for Vim
GNU General Public License v2.0
445 stars 39 forks source link

Only support zsh? #97

Open minrui-hust opened 3 years ago

minrui-hust commented 3 years ago

Got this when run in neovim

/bin/bash: ++: invalid option Usage: /bin/bash [GNU long option] [option] ... /bin/bash [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help --init-file --login --noediting --noprofile --norc --posix --rcfile --restricted --verbose --version Shell options: -ilrsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option

[Process exited 2]

does it only support zsh?

sillybun commented 3 years ago

bash works on my machine. what's your configuration for vim-repl?

shy00n commented 3 years ago

Wait ~~~ repl now works with neovim? If so, pls let me know! When I installed with PlugInstall & tried to run it, I got:

   11 - vim-repl: remote: Total 68 (delta 1), reused 49 (delta 0),│~
    0 /bin/bash: ++: invalid option
    1 Usage:  /bin/bash [GNU long option] [option] ...
    2         /bin/bash [GNU long option] [option] script-file ...
    3 GNU long options:
    4         --debug
    5         --debugger
    6         --dump-po-strings
    7         --dump-strings
    8         --help
    9         --init-file
   10         --login
   11         --noediting
   12         --noprofile
   13         --norc
   14         --posix
   15         --pretty-print
   16         --rcfile
   17         --restricted
   18         --verbose
   19         --version
   20 Shell options:
   21         -ilrsD or -c command or -O shopt_option         (invocation only)
   22         -abefhkmnptuvxBCHP or -o option
   23
   24 [Process exited 2]

I guess it still for vim only. :(

spamwax commented 3 years ago

I am using follwing options, and still get the same error under neovim

let g:repl_program = {
            \   'python': 'ipython',
            \   'default': 'zsh',
            \   'r': 'R',
            \   'lua': 'lua',
            \   'vim': 'vim -e',
            \   }
let g:repl_cursor_down = 1
let g:repl_python_automerge = 1
let g:repl_output_copy_to_register = "t"

bash version 5.1.8 zsh version 5.8

neovim is started from a zsh and zsh is also my default shell!

Aricg commented 2 years ago

also have this problem. using zsh,

bin/bash: ++: invalid option

not sure what options are being passed.