shellasync.vim


Ⅰ. 插件描述

shellasync.vim plugin for asynchronously executing shell commands in vim

Ⅱ. 基本信息

创建日期:  2012-08-20
使用用户:  6
Github星:  41
插件作者:  Dmitry Geurkov

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'troydm/shellasync-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'troydm/shellasync-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'troydm/shellasync-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/troydm/shellasync.vim

Ⅳ. 文档说明

shellasync.vim

shellasync.vim plugin for asynchronously executing shell commands in vim

Introduction

shellasync.vim plugin allows you to asynchronously execute shell commands inside vim
and see output inside a seperate window buffer without waiting for a command to finish.
It also includes shell emulator so you can interactivly execute commands inside vim buffer.
It uses python's subprocess and threading capabilities to execute shell commands in seperate
thread and non-blockingly get the output as the command executes

Note: this plugin is highly experimental, so it might make your vim process unstable

Bonus: this plugin has simple terminal emulator that is sufficient for most terminal related tasks, start it using :ShellTerminal command.

   You can also start any programming language REPL in it and connect any vim buffer to directly send code from that buffer to REPL using :ShellSelect and :ShellSend commands.

Platform:

only unix based operating systems are supported

Requirements:

vim 7.3 with atleast 569 patchset included and compiled with python support

Screenshot

image

Usage

See :help shellasync

添加新评论