GithubHelp home page GithubHelp logo

asynccmdprocessor.vim's Introduction

AsyncCmdProcessor.vim

This is a small plugin for vim 8.0+ which manages to run commands asynchronously and reports the output in a vim buffer. For simplicity the plugin allows to only run one asynchronous command at a time.

Installation

The plugin structure is pathogen and Vundle conform and can be easily installed as the following:

Plugin 'johannst/AsyncCmdProcessor.vim'

Basic Usage

The plugin exports the following command :Async to run jobs asynchronously. It can be used like this:

:Async ls
:Async scons -j16 test
:Async find . -type f -exec grep -nHI function {} +

The output from stdout/stderr is collected in the named buffer async_buffer.

Optional Configuration

The name of the output buffer can be influenced with the following variable:

let g:gACP_buffer_name = 'some_name'

Exported Keymaps

The plugin exports the following keymaps for the normal mode:

<leader>a   -  Puts :Async in vim command line to submit a asynchronous job.
<leader>ab  -  Switch to async_buffer in current window.
<leader>ak  -  Kill the current asynchronous job.

Exported Functions

The plugin exports the following function(s):

GetAsyncJobStatus()  -  Return the status of the currently running / last finished job.
                        The returned string has the following format '<job_status>:<return_value>'

asynccmdprocessor.vim's People

Contributors

johannst avatar

Watchers

 avatar  avatar

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.