Coder Social home page Coder Social logo

Comments (9)

l04m33 avatar l04m33 commented on May 27, 2024

I see that working with Vlime in a small terminal is irritating, because of all those split windows, but I'm not sure I grasped the solution you propose. Do you mean something like vim-slime?

Vlime's buffer management is indeed a bit chaotic at the moment. Some special buffers are still lying around after it's window was closed. Hopefully I can fix this soon.

from vlime.

benrob0329 avatar benrob0329 commented on May 27, 2024

I mean like, have the option of using the REPL from a real terminal emulator (be it URXVT, Gnome-Termninal, or GNU Screen if need be) by using the REPL that is already opened (or launched from Vim).

Example environment:
1500602949

from vlime.

l04m33 avatar l04m33 commented on May 27, 2024

I'm sorry but I still don't get it 😅. If you just want to run the server in a separate terminal, Vlime can already do that. That's exactly what you showed in your screenshot.

To avoid confusion, can you describe your desired workflow by listing steps, and stress on the difference with Vlime's current workflow? For example, if I would like the REPL be launched in a separate terminal, I'd do this:

  1. Start the server in a separate terminal by loading start-vlime.lisp.
  2. Launch Vim in another terminal, and connect to the server, by pressing \cc or calling vlime#plugin#ConnectREPL('127.0.0.1', 7002).
  3. Send expressions to the REPL and read results from inside Vim.

from vlime.

benrob0329 avatar benrob0329 commented on May 27, 2024

Its 3 that I'd like to change, and have everything be done in the other terminal, rather than in a buffer.

from vlime.

l04m33 avatar l04m33 commented on May 27, 2024

Ah, I see. Vlime kept everything in the buffers to make them available for further manipulation, e.g. copying and inspecting the results. I think a separate terminal can't provide decent UI for these tasks.

Currently the closest thing Vlime can do, is to use a vertical REPL window, by adding these to your vimrc (see :help g:vlime_window_settings):

let g:vlime_window_settings = {'repl': {'vertical': v:true, 'pos': 'botright'}}

If that's not what you want either, I think vim-slime may be a better tool for you.

from vlime.

benrob0329 avatar benrob0329 commented on May 27, 2024

Perhaps leaving the standard io in the terminal and having debugging etc in Vim would be a good mix. This would allow things that need editor integration to have them, but allow full TUIs to have a proper terminal.

from vlime.

l04m33 avatar l04m33 commented on May 27, 2024

Vim recently introduced a full-featured embedded terminal, and Neovim already had this feature for some time, so I'm considering using the embedded terminal for launching the Vlime server. I think this will solve most of your problems. The Vim :terminal implementation is not quite stable at the moment though.

from vlime.

l04m33 avatar l04m33 commented on May 27, 2024

I added a new option to instruct Vlime to use the built-in terminal emulators in both Vim and Neovim. Please refer to :help g:vlime_cl_use_terminal. If you're using Vim, this needs the recently-added +terminal feature.

from vlime.

l04m33 avatar l04m33 commented on May 27, 2024

I'm closing this issue. Please feel free to re-open it for further discussion.

from vlime.

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.