Hi everyone. I'm trying to send input from vim to ipython using tslime.vim
. Different versions of this plugin send keystrokes or use tmux to copy-paste buffers between panes. This can be used to send content to language interpreters and works fine with the standard python shell. With ipython however the autoindentation engine gets in the way leading to bad code due to extra indentation introduced by ipython. While searching for ways to disable this I've found the
option but as of ipython 6.x it doesn't seem to have an effect. I also found several issues on github about deprecating
which currently prints a warning.
However if I copy and paste directly from clipboard or from one of X buffers (middle mouse button) ipython is able to bypass the indentation mechanics and pastes code correctly. This lead me to think that ipython can somehow detect where the content is coming from. With that said, is there any supported way to disable the autoindentation or any way to trick ipython into thinking that the content is coming from the clipboard (leading to a temporary bypass of autoindentation)?
I would like to use ipython instead of python for obvious reasons but the autoindentation engine is currently making this hard to achieve.