Quickly open and close Nvim_terminal_emulator.
- Open or close the terminal window down or right.
- This plugin uses only one terminal buffer.
You can install this plugin using your favorite package manager.
For example, if you use dein, execute
call dein#add('keiyakeiya/termSwitcher.vim')
Open/Close bottom terminal window
:Tterm
Open/Close right terminal window
:Vtterm
It's convenient to assign a keymap to a command.
The following example assigns Tterm
to <c-t>
in normal mode.
nnoremap <C-t> :Tterm<CR>
The default values for terminal window height and width are 10 and 65 respectively.
If you want to change them, set the variables g:termSwitcherHeight
and g:termSwitcherWidth
like below.
let g:termSwitcherHeight = 15
" set terminal window height to 15
let g:termSwitcherWidth = 50
" set terminal window width to 50