Comments (12)
I agree that overriding the basic
<c-D>
was quite not a good move
Fixed in be2a927, defaulting to <c-e>
to send the EOF signal instead of <c-d>
.
from intim.
I had the same issue, and I think the cause is at lines 637-638 of intim.vim:
let launchCommand = s:terminal()
\ . " -e 'tmux -2 new -s " . s:sname() . "' &;"
The semicolon at the end of the command is invalid syntax in Bourne shells such as bash.
This fixed it for me:
let launchCommand = s:terminal()
\ . " -- tmux -2 new -s " . s:sname() . " &"
Using the -- sytnax for the tmux command suppresses a warning raised by -e.
from intim.
hm I realized that the repository I forked is an odl one, I should have used this : https://github.com/jalvesaq/Nvim-R
The implementation has changed someone so it wont be so straightforward to adapt it but I will try.
from intim.
Hey. Welcome and thanks for your interest in Intim :)
you say you where inspired from vim-r-plugin, but looking at the sources they seem really different from the vim-r-plugin
Sure. I have been inspired from vim-R-plugin specifications, but this is a complete rewrite.
E484: Cannot open file /tmp/viUWgfu/2
Cannot reproduce. Can you show me your Intim configuration (if any) and the outputs of:
:echo <SNR>26_terminal()<cr>
:echo <SNR>26_sname()<cr>
:echo <SNR>26_get_preInvokeCommands()<cr>
(note: I wrote 26_
because it is the number that shows up in your error message. This number may change if your have installed other plugins since then. Please use the most recent one.)
Plus: do you have any idea what this /tmp/viUWgfu/2
is on your machine or your configuration? It is never explicitly targetted by Intim.
I wanted to use python3
For this, slacking:
call Intim_invokeCommand('python', 'python3')
in your .vimrc
should be enough, see :help intim-starting
. ;)
I am really use to vim-r-plugin shortcuts
Any shortcut can be remapped of course, with the <Plug>Intim*
entry points.
by default I think you remap the vim ctrl+D comand
Intim does not remap anything user had mapped before. However, I agree that overriding the basic <c-D>
was quite not a good move (I personally use <m-D>
instead). I'll change this asap ;)
from intim.
Plus: do you have any idea what this /tmp/viUWgfu/2 is on your machine or your configuration? It is never explicitly targetted by Intim.
Wop. Update on that: I think /tmp/viUWgfu/2
is a kind of path used by tmux
, and that this error may be related to tmux
not understanding the command it is supposed to send to IntimSession.
What version of tmux
are you currently running?
from intim.
My tmux version:
$ tmux -V
tmux 2.3
I just donwload the last github version (thanks for re-maping :) ! ). I still have the same error with same number (26) and
While trying the echo command you told me to do, they all gave me E121: Undefined variable: cr
, cf:
E121: Undefined variable: cr
E15: Invalid expression: <SNR>26_get_preInvokeCommands()<cr>
Press ENTER or type command to continue
Not sure if I will have time try more things with the plugin this week as I have to finish some stuff, but thank for loonking at my problem!
from intim.
Well, I have the same tmux version which should be okay.
As for the commands, <cr>
is only vim idiom to say "press enter". I should have made it explicit, sorry for that. The plain commands are:
echo <SNR>26_terminal()
echo <SNR>26_sname()
echo <SNR>26_get_preInvokeCommands()
So, to send them, you have to explicitly-type-on-your-keyboard:
:echo <SNR>26_terminal()↵
:echo <SNR>26_sname()↵
:echo <SNR>26_get_preInvokeCommands()↵
from intim.
:D ok sorry my bad, I should have tried that. Thus the result are:
gnome-terminal
IntimSession
['']
from intim.
Thank you. Well. These are the expected default options. I still cannot reproduce your problem. Can you describe in detail the successive steps that lead you to this error? What I personally do is:
$ vim myfile.py
in my terminal to open a script, then once in Vim:<F10>
to launch intim session, then<space>
to send the current line to the interpreter
Do you use anything different on your side? And if yes, what? :)
Is your vim terminal already tmux
ed somehow?
Thank you for your patience.
from intim.
@tleonardi Well, cheers for that. I cannot test it this week, but feel free to offer your fix as a pr :)
from intim.
@simoncarrignon Pr #9 is supposed to fix it. Do you confirm? :)
from intim.
Closing this as fix non-confirmed for more than 1 year.
from intim.
Related Issues (10)
- Intim errors while opening tex file HOT 2
- No terminal started HOT 4
- IndentationError: expected an indented block HOT 5
- E117: Unknown function: Intim_invokeCommand HOT 2
- Julia support? HOT 4
- IntimSetLanguage: Unknown function HOT 2
- sage - indentation issue when sending line HOT 7
- Vundle - Error while running helptags HOT 6
- Intim option calls fail: `call Intim_*()` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intim.