Skip to content

mseravalli/abbterm.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abbterm.nvim

A Bit Better TERMinal for Neovim.

This pluging keeps the state of the terminal so that when you come back you are in the same mode you had as you left it. It tries to reproduce the experience of the terminal in vim.

Installation

Use your favorite plugin manager.

Usage

First of all highly recommended to add these mappings to your init.vim config to decrease friction when using the terminal.

tnoremap <C-w>N <C-\><C-n>

tnoremap <C-w>h <Cmd>wincmd h<CR>
tnoremap <C-w>j <Cmd>wincmd j<CR>
tnoremap <C-w>k <Cmd>wincmd k<CR>
tnoremap <C-w>l <Cmd>wincmd l<CR>
tnoremap <C-w>H <Cmd>wincmd H<CR>
tnoremap <C-w>J <Cmd>wincmd J<CR>
tnoremap <C-w>K <Cmd>wincmd K<CR>
tnoremap <C-w>L <Cmd>wincmd L<CR>
tnoremap <C-w>t <Cmd>wincmd t<CR>
tnoremap <C-w>b <Cmd>wincmd b<CR>
tnoremap <C-w>x <Cmd>wincmd x<CR>
tnoremap <C-w>M <Cmd>wincmd \|<CR><Cmd>wincmd _<CR>
tnoremap <C-w>m <Cmd>wincmd =<CR>
tnoremap <C-w>= <Cmd>wincmd =<CR>
tnoremap <C-w>q <Cmd>wincmd q<CR>
tnoremap <C-w>_ <Cmd>wincmd _<CR>
tnoremap <C-w>\| <Cmd>wincmd \|<CR>

Afterwards it should be possible to just use the terminal, enter and exit the buffer and the terminal will keep the last seen mode and it will not immediately jump back to normal mode as soon as the buffer is left.

About

A Bit Better TERMinal for Neovim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages