sillybun / vim-repl

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

How to Run vim-repl when I don't have bash? #80

Closed suliveevil closed 4 years ago

suliveevil commented 4 years ago

I'm using iVim on iPadOS, which has a terminal named ivish. How to Run vim-repl when I don't have bash?

sillybun commented 4 years ago

Emmm, interesting idea, and I have thought about it. But there is no command line software available on ivish like Python. What's the meaning of using vim-repl then?

suliveevil commented 4 years ago

I do have python3 in ivish, it's equivalent to python in bash on PC.

sillybun commented 4 years ago

That's impressive. So, can you install vim-repl for iVim? Does it have a plugin manager?

suliveevil commented 4 years ago

Yes, Vim8's builtin package management and iVim's iplug. You can even just create the ~/.vim/plugin and put scripts in it.

System vimrc:

" set default shell
set shell=ivish 
sillybun commented 4 years ago

You can just install vim-repl and using the setting:

let g:repl_program = {
            \   'python': 'python3',
            \   'default': 'ivish',
            \   }

But there are some bug for python code which costs time to fix.

suliveevil commented 4 years ago

Thank you very much, that works!

Somehow iVim's IPython environment have bugs, I'm using Python's PDB.

pdb