Comments (2)
Maybe you have some misunderstandings about the exit commands. Exit commands are determined by the program run in terminal, not the filetypes. For example, you want to run python
when writing a python script, so you have to type quit()
to quit the program. I have no idea what do you want to open in the terminal when you write c++ code. I think there is no program with name "cpp".
from vim-repl.
Maybe you have some misunderstandings about the exit commands. Exit commands are determined by the program run in terminal, not the filetypes. For example, you want to run
python
when writing a python script, so you have to typequit()
to quit the program. I have no idea what do you want to open in the terminal when you write c++ code. I think there is no program with name "cpp".
@sillybun
OK,I get it. Now it works well,after changed to this:
let g:repl_exit_commands = {
\ "python": "quit()",
\ "node":'.exit',
\ "cling":".q",
\ "bash": "exit",
\ "zsh": "exit",
\ "default": "exit",
\ }
I think the problem here is that not only interpretive language has REPL tools and usually the name of the filetype and interpreter program of an interpretive language is the same.But it's not the case when it comes to cplusplus .etc.Maybe a note in Readme is needed.
Best Regards.
from vim-repl.
Related Issues (20)
- enhancement request: add support to send code by block defined by #%% or ### HOT 8
- 请问一下vim-repl能不能支持julia这个动态语言
- Attempting use of pyplot causes immediate crash
- 请问能让vim支持c++的交互式解释器cling吗?
- windows git bash环境下用vim-perl发送的python代码无法执行
- 发送python代码段到ipython出现代码中单引号被替换成双引号且代码尾部被加了若干单引号 HOT 3
- 特性请求:vim-floaterm
- A couple of improvements request.
- Wrong line-endings when starting jupyter-console instead of ipython. HOT 1
- Terminal freezes after :REPLSendSession
- Annoying warnings when sending line to reple HOT 1
- 使用vim-repl发送python判断语句时,遇到else时,就会报错,显示语法错误,这个问题很麻烦
- When the terminal is gone, it will never come back.
- g:repl_python_pre_launch_command not working. HOT 1
- How to map <F9> to <leader>w? HOT 1
- REPLUnhide won't work on Windows 10.
- Stop sending stuff when an error is detected.
- Some problems with the REPL window
- :REPLDebugStopAtCurrentLine ignores the ipython profile HOT 1
- Glory to Russia.. Glory to China..
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 vim-repl.