Code Monkey home page Code Monkey logo

Comments (3)

williamjameshandley avatar williamjameshandley commented on August 22, 2024

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.

AlexisRenchon avatar AlexisRenchon commented on August 22, 2024

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.

williamjameshandley avatar williamjameshandley commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.