bfredl / nvim-ipy

IPython/Jupyter plugin for Neovim
MIT License
423 stars 29 forks source link

Run command as vim operator #43

Closed rattletat closed 4 years ago

rattletat commented 6 years ago

Hi,

is it possible to use the run command as a operator on text objects? Often I would like to run the inner paragraph for example or the same indent (with indent textobject plugin). Also, when opening the ipython buffer, could you set syntax=python automatically?

Thanks a lot!

bfredl commented 6 years ago

Also, when opening the ipython buffer, could you set syntax=python automatically?

Yes, use let g:ipy_set_ft = 1 in your init.vim .

is it possible to use the run command as a operator on text objects?

Not yet, but it should be possible using 'operatorfunc', I will look into it.

rattletat commented 5 years ago

Implemented it in my fork https://github.com/mightymicha/nvim-ipy

bfredl commented 5 years ago

@mightymicha Nice! I might integrate the operatorfunc part, in the weekend or so.

JohnReid commented 4 years ago

@bfredl did you integrate the operatorfunc part? I would be keen on this. Am going to look at @rattletat 's fork

JohnReid commented 4 years ago

I cannot find the fork now: https://github.com/mightymicha/nvim-ipy 404 error :(

rattletat commented 4 years ago

@JohnReid Hi yes sorry, it seems I deleted it. However, I switched to another plugin which uses a more universal approach and which works quite well: https://github.com/kassio/neoterm

JohnReid commented 4 years ago

Thx for the reply. I'll check it out. I do like nvim-ipy though.