kassio / neoterm

Wrapper of some vim/neovim's :terminal functions.
Other
1.32k stars 117 forks source link

TREPLSend{Line,File} does not respect mods #317

Closed jonathf closed 3 years ago

jonathf commented 3 years ago

Describe the bug TREPLSendLine and TREPLSendFile does not respect vert mod when opening a new buffer.

To Reproduce Steps to reproduce the behavior:

  1. Opened a neoterm with :vert TREPLSendLine

Expected behavior Buffer open to the side like :vert T does.

Versions:

jonathf commented 3 years ago

So what I was actually looking for here was to get the split to default to go right. I got that g:neoterm_default_mod was the variable that should control this, but 'vertical' went left and 'botright' went below.

So the solution for this, as I am figuring things out, is to pass multiple commands in space seperated list:

let g:neoterm_default_mod = 'botright vertical'

In other words, I am closing this, as the it is no longer a problem for me.

Note though, I stumbled upon this possibility in the docs in other unrelated sections. Perhaps it is worth mentioning this feature in the help text for g:neoterm_default_mod so others don't make the same mistake.