vim-terminal


Ⅰ. 插件描述

Use terminal easily in vim.

Ⅱ. 基本信息

创建日期:  2018-06-15
使用用户:  1
Github星:  16
插件作者:  PangPangPangPangPang

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-terminal
Use terminal easily in vim/neovim.(only support 8.1)

Toggle

toggle

Add tab

add

Switch tab

change

Feature

  • Quickly open and close terminal with :VSTerminalToggle.
  • Tab management with :VSTerminalOpenNew, :VSTerminalOpenWithIndex, :VSTerminalDeleteWithIndex.
  • Use g:vs_terminal_custom_height to config terminal height.
  • Use g:vs_terminal_custom_pos to config terminal position.('top' or 'bottom')
  • Use g:vs_terminal_custom_command to config default command.(like /bin/sh)

Install

vim-terminal should work with any modern plugin managers for Vim.

  • vim-plug

    • Plug 'PangPangPangPangPang/vim-terminal'

Usage

Below are some helper lines in my .vimrc

" Quick toggle terminal.
Plug 'PangPangPangPangPang/vim-terminal'
map <silent> <F12> :VSTerminalToggle<cr>
if has('nvim')
    tnoremap <F12> <C-\><C-n> :VSTerminalToggle<cr>
    tnoremap <C-w> <C-\><C-n><C-w>
else
    tmap <silent> <F12> <c-w>:VSTerminalToggle<cr>
endif
let g:vs_terminal_custom_height = 10

Lisence

MIT License. Copyright (c) 2018 Max Wang.

添加新评论