Replies: 5 comments 2 replies
-
Hi @Barzi2001 how is it different than #299 ? |
Beta Was this translation helpful? Give feedback.
-
It’s different in the sense that #299 added an extra Furthermore, you suggested me the mapping that works as expected: it sends the code cell from the editor to the terminal AND it executes it. With the other slime commands the text is “slimed” from the editor to the terminal, no So, I assume that I should map the slime commands that I want to use and add a
But I have no clue how.
But it doesn’t work, i.e. the current line is slimed towards the terminal but then the |
Beta Was this translation helpful? Give feedback.
-
UPDATE! I have jut noticed that the more correct way of using vim-slime when you have a split "vim editor - terminal running iPython" is to set Assume that I want to execute the following code that I pasted it in the clipboard
Option 1: Everything works as expected. Option 2 As you can see, the line after In the picture below you can see what happens when you hit |
Beta Was this translation helpful? Give feedback.
-
🤔 if combination of @Barzi2001 let me know if you find out more. |
Beta Was this translation helpful? Give feedback.
-
I found a solution here line 8
line 16
EDIT: perhaps line 15 shall be adjusted as well since @jpalardy can these changes been implemented, please? :) |
Beta Was this translation helpful? Give feedback.
-
I am working on a
Windows 10
machine with the followingVim
:I am using
Vim
plusiPython
that runs in aPowershell
terminal as shown in picturewhen run any slime command from the editor (for example when I run
<C-c><C-c>
or when I map something likenmap <C-c><C-x> :SlimeSendCurrentLine<CR>
, see my_vimrc
below) I would like that the slime automatically add a<CR>
so that I don't have to switch to the terminal, then hitEnter
and then switch back to the editor.How to do that?
For completeness, here is my
_vimrc
Beta Was this translation helpful? Give feedback.
All reactions