vterm


Ⅰ. 插件描述

Vim terminal emulator written in vimscript

Ⅱ. 基本信息

创建日期:  2013-04-19
使用用户:  3
Github星:  21
插件作者:  Jesse Nazario

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vterm : Terminal emulator inside vim.

Intro

The goal of vterm is to provide a clone of unix terminal inside vim that works right out of the box without any dependencies.

Instalation

Use your favorite package manager to install it or place autoload and plugin
folders in your ~/.vim directory.

Start

To start vterm, run

:VTermStart

Configuration

History

VTerm keeps you search history. You can call the previous and next commands by pressing
<C-p> and <C-n> respectively. If you wish you can change the mappings by setting the
following variables:

let g:VTermKeyPrevHist="<C-p>" " call previouns command in history
let g:VTermKeyNextHist="<C-n>" " call next command in history

PS1 variable

You can customize the ps1 variable by changing the following variable:

let g:VTermPs1 = "[%U@%H %D] $"
%U is your username
%H is your hostname
%D is the working directory

Persistent insert

If this variable is non-zero, VTerm will enter automatic in insert mode when start VTerm and
after entering your commands.

let g:VTermPersistentInsert=1

Doc

Please read the doc file for further configurations

Todo

  • highlighting
  • completion
  • use a bash script/command to get the ps1 variable (?)
  • handle execution of terminal based applications

添加新评论