-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
[help needed] send code block that contains blank lines to python/ipython. #270
Comments
I had a similar problem. I also tested many other REPL for python programming in neovim and think that neoterm is best suited for my workflow. I just added these two functions:
I would like to integrate this directly into neoterm, but I don't know the programming language and the code base well enough. This code is not really stable or flexible. However, the cell mode can be adapted to suit your problem:
You can map the Commands like PasteVisualSel to any key. |
I am currently working on a pull request on this topic. This is my first contact with github and vim scripting. I don't know the rules, but I think this is a good place to start. What do I have to consider? |
#234 got stale, is someone get it updated it can be merged.
tbh, I don't know. I have almost no knowledge on python, so I'm expecting the community to contribute and fix/implement this. |
You can open the pull request with your initial ideas and we can go from that. The architecture of the plugin shouldn't be too complex. Vim/Neovim documentation is very thorough, so it can be very helpful. |
Yes that's true. Nevertheless, for me these are quite a few new topics. So far I'm only used to a little python programming on windows without using any git. The help files are awesome .... steep learning curve :) |
can we close this one, now that #274 was merged? |
@kassio , @incoggnito For ipython only, the Anyway, for now it meets my need. Thanks so much. If later I have time on this, I may try to contribute to it. I just close the issue for now. |
Problem
Selecting
and executing
:TREPLSendSelection<CR>
, giveor
This problem appeared many times, e.g.,
There were also some pull requests relating to this problem, e.g.
--no-autoindent
flag)The same approach as #234 is used in the plguin
urbainvaes/vim-ripple
:https://github.com/urbainvaes/vim-ripple/blob/master/autoload/ripple.vim#L28
My question is,
Thanks a lot!
The text was updated successfully, but these errors were encountered: