Use terminal easily in vim/neovim.(only support 8.1)
- 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
)
vim-terminal
should work with any modern plugin managers for Vim.
- vim-plug
Plug 'PangPangPangPangPang/vim-terminal'
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
MIT License. Copyright (c) 2018 Max Wang.