kassio/neoterm

Opens :terminal in new buffer, not in split

Closed this issue · 3 comments

With no configuration, neoterm opens a terminal in a new buffer, closing the old buffer.

To Reproduce
Steps to reproduce the behavior:

  1. Opened a neoterm with :T ls
  2. Send a command
  3. closed neoterm '....'
  4. See error

Expected behavior
Expected :T to open a new split

Versions (please complete the following information):

  • OS: Manjaro Linux, 4.19.85
  • neoterm commit sha1: 9f0e712
  • Neovim
  • Version 0.4.3

Additional context
Without neoterm installed, :terminal also opens a new buffer and closes the old one. I think this is expected behavior for NeoVim.

Neoterm config consists of (in this order):

filetype off
Plug 'kassio/neoterm'
let &runtimepath.=',/home/g/.local/share/nvim/plugged/neoterm'
filetype plugin on
set nocompatible

Thanks for your issue.

This is the default behavior, but you can change it using g:neoterm_default_mod.

I checked out the mods but still can't figure out how to open a terminal in a new buffer (not split) without closing the last buffer. Can somebody help? Thank you.

You can use edit, it'll open a new buffer and put the old one in the background.
neoterm-edit