Git Product home page Git Product logo

Comments (6)

skywind3000 avatar skywind3000 commented on May 22, 2024

我不太清楚你的需求,buffer里面的命令是python命令?shell命令?bash/sh/zsh ?perl?以什么确定?文件头一行?还是扩展名?运行buffer命令的目录是?当前目录?

这个很个人化的东西,你可以自己实现这条命令,把缓存里的东西保存到临时文件里面,然后调用AsyncRun去执行它,因为即便我做我也得这么做的。

from asyncrun.vim.

zbinlin avatar zbinlin commented on May 22, 2024

就是普通的 shell 命令,比如我需要使用 curl 来测试一个 API,如果这条命令太长,直接在 shell 里修改起来比较麻烦。如果可以这样:直接打开 vim,然后在 vim 里输入这条命令,然后直接使用 :%AsyncRun 来运行这条命令,这样如果需要修改命令,然后运行,直接在 vim 里编辑比 shell 里方便多了。

from asyncrun.vim.

zbinlin avatar zbinlin commented on May 22, 2024

这个功能有点像 :AsyncRun! man -S 3:2:1 <cword>,只是把 <cword> 换成整个 buffer 的内容

from asyncrun.vim.

zbinlin avatar zbinlin commented on May 22, 2024

已找到类似的 plugin: https://github.com/JarrodCTaylor/vim-shell-executor

from asyncrun.vim.

skywind3000 avatar skywind3000 commented on May 22, 2024

嗯,你看的这个插件并不能异步执行,它要把你整个vim停下来去执行东西去,完了你才能继续。

from asyncrun.vim.

zbinlin avatar zbinlin commented on May 22, 2024

所以如果你这边可以实现就最好啦 :)

这里还有一个类似:https://github.com/krisajenkins/vim-pipe

from asyncrun.vim.

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.