jpalardy / vim-slime

A vim plugin to give you some slime. (Emacs)
http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/
MIT License
1.86k stars 225 forks source link

can't send raw data to rpc channel ? #212

Closed z-huabao closed 4 years ago

z-huabao commented 5 years ago

Hello, does it config right?

2019-08-22 10-53-50 的屏幕截图

config as show above, and use default keybind <C-c><C-c> get error.

z-huabao commented 5 years ago

2019-08-22 11-23-15 的屏幕截图 why different error now?

jpalardy commented 5 years ago

Hi @z-huabao

Is this only happening for neovim? Did you try the tmux or screen mode?

Let me know.

z-huabao commented 5 years ago

tmux work well two days ago. I install some plugins and chang some configs recently, it don't work now:

after setting 'socket name' and 'target pane', it show nothing, no error.
jpalardy commented 5 years ago

It's possible that different plugins interfere with each other.

Can you try "vim-slime only" to see if that works? Then, you can try adding plugins back one at a time.

z-huabao commented 5 years ago

Thanks, I try "vim-slime only" , and it works with tmux. Then, I try adding plugins back, tmux works too???

but neovim always not work, same error as before(second picture).

jpalardy commented 5 years ago

I installed (from scratch) neovim, vim-slime and I'm able to send text into the :terminal

You seem to set the g:slime_default_config, could you try without it? (it's not containing the right config for neovim in the screenshot above)

z-huabao commented 5 years ago

Now find the problem(Neovim):

So, can you solve the conflict? And, I'd like setting g:slime_default_config with target_pane=bottom, not default right pane, can you solve it like tmux setting do? Please!

jpalardy commented 5 years ago

I'm not sure neovim has a concept for "the bottom pane" … it seems to be numerical job ids.

z-huabao commented 5 years ago

how about a named terminal? And send code to this terminal reference: how-to-change-buffer-name-for-neovim-terminal-special-buffer

jpalardy commented 5 years ago

I'm not sure, I didn't write that part of the plugin.

Let me know if you come up with something.

z-huabao commented 5 years ago

No, I am not familiar with vimscript. Recentlly, I want to have a special neovim terminal window, like IDE's console, to print log or run command or receive vim-slime's code, and it can be show/hide(don't kill) by a shortcut.

jpalardy commented 5 years ago

Yeah, vimscript isn't too fun 😢

z-huabao commented 5 years ago

:worried:

z-huabao commented 4 years ago

@jpalardy I have try to solve rpc channel error in slime.vim

And have make the features which I need, such as, tareget_pane = bottom, "named terminal window", "ipython cells", etc. my plugin: z-huabao/vim-slime-ipython

jpalardy commented 4 years ago

nice! 👍