esamattis / slimux

SLIME inspired tmux integration plugin for Vim
http://esa-matti.suuronen.org/blog/2012/04/19/slimux-tmux-plugin-for-vim/
Other
217 stars 52 forks source link

Error after sending visual selection to ipython with vim splits #60

Open ghost opened 8 years ago

ghost commented 8 years ago

I noticed an error after sending a visual selection with python code containing imports. To reproduce this issue:

1 - Initiate tmux and create two panes (in my case, I hit C-b+"). 2 - In the first pane, open a file with vim (I personally use neovim). In the second pane, start a session with ipython. 3 - In the pane you started vim, create a vertical split with vim (C-W v) 4 - (Optional) Open another file in the second vertical split created in step 3. 5 - Write some python imports in the first part of the vertical split

import sys
import os

6 - Visually select those lines and send them to the ipython pane 7 - This will trigger an error

I attach a couple of screenshots to make the explanation easier to follow.

screenshot from 2016-04-03 10-47-59

screenshot from 2016-04-03 10-21-46

For some reason, this only happens with imports.

Version information: tmux 2.0, Ubuntu GNOME 15.10, latest version of slimux.

Thanks