Code Monkey home page Code Monkey logo

Comments (5)

dam9000 avatar dam9000 commented on July 24, 2024 1

Ha interesting, now quite what I had in mind, but I guess that might be good enough, thanks for the tip.

from vim-slime.

jpalardy avatar jpalardy commented on July 24, 2024

Hi @dam9000

What do you have in mind?

If you "self-target", you can send vim some commands … although I've never tried it myself 🤔

from vim-slime.

dam9000 avatar dam9000 commented on July 24, 2024

One window where I could type vim commands, such as

:echo "hello"
:set rtp?
:hi Normal

and in the other window the output of these commands. Or alternatively getting the output in the same window, but a separate window for output probably makes more sense.
But the execution would happen only for selected lines, not whole buffer (as in :so %)

Currently if one wants to edit or copy from command history it's rather cumbersome -
<esc>:<ctrl-f>edit/copy<ctrl-c><ctrl-c>
And one needs to check :messages to see the output which is not editable, searchable.

One alternative I found is the :Bufferize command plugin which solves half the problem, it outputs the command to a new buffer, which is nice for a single command, but not practical if you have more lines...

from vim-slime.

jpalardy avatar jpalardy commented on July 24, 2024

I tried a few things

I can drive a vim from another tmux pane:

Screen Shot 2023-12-03 at 14 03 54

(meaning: tmux with a split window, 2 vims, left vim slimes to the pane on the right)

I don't know if that's enough for your use-case

from vim-slime.

dam9000 avatar dam9000 commented on July 24, 2024

I think the issue can be closed, thanks for the help.

from vim-slime.

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.