inbox   31624

« earlier    

Understanding ASR9k ISM and VSM Modules : networking
I'm beginning preliminary research into upgrading our 7606-S with ASR9006 routers. We're currently spec'ing RSP440's and 24x10GE line cards. What...
inbox 
11 days ago by arimathea
vim-slime isn't working as should be : vim
When I select multiple line in my code and send to tmux, i have this as input:%cpaste -qimport numpy as npimport matplotlib.pyplot as plt--after that I receive this error "ERROR:root:Line magic function %cpaste not found" and a syntax error because "--". I read a little about ipython and I think that %cpaste and %paste not working anymore. So that I open slime.vim referent to ipython in ftplugin/python, there I found this line:"if exists(g:slime_python_ipython) && len(split(a:text,"\n")) > 1return ["%cpaste -q\n", a:text, "--\n"]"Such I modified to"if exists(g:slime_python_ipython) && len(split(a:text,"\n")) > 1return [a:text]"And now, when I send multiple lines just the first is being sended. For example, if I use selection mode and send this three lines:import numpy as npimport matplotlib.pyplot as plt%matplotlib inlineI had this in ipython:In[1]: import numpy as npAnd the two lines reamining are ignored and not even pasted.PS: I made a test, I left ipython and sended my three lines to terminal, just to see if the three lines would be pasted, and yes, the three lines were pasted. That is, there is a problem only to paste from vim to ipython.May someone help me, please? via /r/vim
inbox 
12 days ago by goajunior

« earlier