Skip to content

Support for running vim commands #29

@tomtom

Description

@tomtom

It would be excellent if asynccommand#run() could also run arbitrary vim commands asynchronously. I'm thinking of something like:

    let env = {}

    function! env.get(temp_file) dict
        let qfl = eval(join(readfile(a:temp_file), "\n"))
        ...
    endf

    function! env.put(temp_file) dict
        let qfl = ...
        call writefile([string(qfl)], a:temp_file)
    endf

    call asynccommand#run("", env)

This would first run env.put() in the remote sub-vim to write some info to the tempfile, and then use
env.get() to retrieve the info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions