Skip to content

PangPangPangPangPang/vim-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Use terminal easily in vim.

Resources

License

Stars

Watchers

Forks

Packages

No packages published