Skip to content

keiyakeiya/termSwitcher.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

termSwitcher.vim

Quickly open and close Nvim_terminal_emulator.

both2

Feature

  • Open or close the terminal window down or right.
  • This plugin uses only one terminal buffer.

Installation

You can install this plugin using your favorite package manager.
For example, if you use dein, execute

call dein#add('keiyakeiya/termSwitcher.vim')

Usage

Open/Close bottom terminal window

:Tterm

tterm2


Open/Close right terminal window
:Vtterm

vtterm2

Key mapping example

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>

Configuration

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

About

Quickly open and close Nvim_terminal_emulator.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published