Comments (3)
Hi @AlexisRenchon. I agree that this would be great functionality to have, and that the most vim-like way of doing it would be with a :vertical
command modifier.
I've spent some time looking into this, and unless I'm mistaken it's not possible to access command modifiers through vimscript, only the full C API, so the implementation that you suggest with the :vertical
command modifier I don't think is going to be possible.
There is a reasonable half-way solution you can use now, which is to run :Ijulia
as before, and then key <ctrl>-w H
, or <ctrl>-W L
which should move the split as you require (note the capital H).
A more long-term solution would be to have a vimteractive parameter g:vimteractive_vertical
that you can set in your .vimrc
, which would then toggle what the default splitting behaviour is. Would this suffice? I've put in a potential PR #21. If you clone down the vertical_option
branch and install from that, could you test that out and see if that works for you?
from vimteractive.
Hi @williamjameshandley , thank you so much for the fast reply and branch!
I copied #21 , and added - let g:vimteractive_vertical = 1 " Vertically split terminals - to my .vimrc file. It works well.
Note that it puts the terminal (julia for me) on the left, and I prefer to have it on the right. But using Ctrl-w Ctrl-r swap the two windows, so this is fine.
EDIT: also, the option of having ctrl-S going to the next line would be nice too!
from vimteractive.
Many thanks @AlexisRenchon I've now merged that into master.
EDIT: also, the option of having ctrl-S going to the next line would be nice too!
I think this would be a breaking change, but an alternative keyboard shortcut could provide this functionality. If you're able to have a go at implementing and testing this yourself, then feel free to submit it as a PR. You should raise this as a separate issue regardless.
from vimteractive.
Related Issues (20)
- backspace (in insert mode) frozen after having sent lines to interactive program HOT 1
- Send results back HOT 3
- Possible errors in autoload/vimteractive.vim HOT 8
- Send selected text to Ipython console HOT 1
- neovim compatible? HOT 4
- Three issues with respect to user-friendly HOT 3
- Buffer name choice causing error. HOT 2
- The plugin can't recognize existed console HOT 1
- No new line on windows HOT 3
- Can't backspace up to previous line in Insert mode HOT 3
- Can't use ctrl-s in visual mode HOT 2
- +terminal HOT 1
- Prevent automatic scroll on switching splits HOT 3
- feature request: wolfram support HOT 3
- Sending cell of code HOT 2
- Interactive plotting broken
- run vimscript commands interactively
- Filetype recognition shell
- Support for multiple terminals at once HOT 21
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 vimteractive.