Comments (4)
Now command REPLToggle may create, show, and exit a repl, it's a little confusion.
from vim-repl.
Add a small function in .vimrc:
function! REPLTOGGLE()
if repl#REPLIsVisible()
call repl#REPLHide()
elseif repl#REPLIsHidden()
call repl#REPLUnhide()
else
call repl#REPLToggle()
endif
endfunction
nnoremap \r :call REPLTOGGLE()<Cr>
nnoremap \c :call repl#REPLClose()<Cr>
from vim-repl.
I just think using one key to open and close REPL is convenient. If there are two commands, one for open, one for close, users have to have two different noremap in .vimrc
.
from vim-repl.
Yeah, just different thought about it, lol.
from vim-repl.
Related Issues (20)
- 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..
- Improper indenting for IPython version 8
- vim-repl在windows下发送代码时候会报错,无法加载库 python311.dll
- Ipython run support
- vim-repl在WSL debian vim9.01499中发送任何Python代码都报错
- vim-repl在函数或条件判断循环体内部有缩进的地方,不能单独发送一行代码,只能是发送两行及以上的代码才能成功执行
- windows vim发送代码到Python解释器不能立即执行, 要在解释器中按回车才能执行。
- Decorator with arguements is not working in REPL shell with iPython kernel
- ipython在repl代码块时缩进错误
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.