Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: custom_app branch #13

Closed
alok opened this issue Dec 24, 2016 · 6 comments
Closed

Discussion: custom_app branch #13

alok opened this issue Dec 24, 2016 · 6 comments

Comments

@alok
Copy link
Contributor

alok commented Dec 24, 2016

@jalvesaq @1o0ko

Feel free to close this/move to a more appropriate section, but I figured this would be the best place to discuss the commit to allow different REPLs.

It works for haskell, but (i)python support is broken. I suspect you will have to use paste mode (%cpaste), and you may want to see how vim-slime does it.

They have good handling for python but don't open the repl for you.

@jalvesaq
Copy link
Owner

Note: I almost never use any REPL other than R. That is, I almost never use vimcmdline. That said, I installed and tested ipython in a Neovim buffer, and noted that it has Normal and Insert modes, like Vim.
I noted this because when sending %cpaste ipython actually only "receives" ste, as Vim would do if it was in Normal mode.

If I send to ipython a line containing only the letter a, it enters Insert mode and, then, I can send commands normally. If it is not in Insert mode, nothing works, including sending

%cpaste -q
The_Python_line
--

So, it seems that users have to make sure that ipython is in Insert mode before sending commands to it.

@alok
Copy link
Contributor Author

alok commented Dec 26, 2016

I use it in emacs mode actually, since nested modes are a pain. In emacs mode, I still run into issues.

@jalvesaq
Copy link
Owner

Is https://github.com/ivanov/vim-ipython a better alternative than vimcmdline for ipython? I did not install it.

@1o0ko
Copy link

1o0ko commented Dec 27, 2016

@jalvesaq vim-ipython is a little cumbersome. It requires you to open ipython kernel/console beforehand.

@alok
Copy link
Contributor Author

alok commented Dec 28, 2016

I've not used vim-ipython, so I can't really speak to that.

@jalvesaq
Copy link
Owner

The incompatibility between vimcmdline and ipython was discussed at #18, and there is no solution for it (so, I'm closing this issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants