vim-terminal


Ⅰ. 插件描述

A Vim plugin that opens an interactive terminal in a buffer for running programs

Ⅱ. 基本信息

创建日期:  2017-12-21
使用用户:  14
Github星:  19
插件作者:  Chad Hughes

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-terminal is a Vim plugin which allows you to run interactive programs, such as bash on Linux or powershell.exe on Windows, inside a Vim buffer. In other words, it is a terminal emulator which uses a Vim buffer to display the program output.

vim-terminal

Usage

Type :Terminal <command> to run your command in vim, for example:

:Terminal bash
:Terminal mysql -h localhost -u joe -p sock_collection
:Terminal Powershell.exe
:Terminal C:\Python27\python.exe

To open Terminal in a new horizontal or vertical buffer use:

:TerminalSplit <command>
:TerminalVSplit <command>
:TerminalTab <command>

All text typed in insert mode will be sent to your shell. Use the <F9> key to send a visual selection from any buffer to the shell.

For more help type :help Terminal

Requirements

Linux

  • Vim or GVim 7.0+ with +python and/or +python3
  • Python 2.3+ and/or 3.x

WINDOWS

  • GVim 7.3 (the official installer from this site)
  • Python 2.7 and/or 3.1

Installation

apt-vim install -y https://github.com/tc50cal/vim-terminal.git





Note

vim-terminal was inspired by Conque

添加新评论