kassio / neoterm

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

Add something to disable auto-REPL'ing... I just want a (your) nice terminal on the side! #150

Closed forbesmyester closed 7 years ago

forbesmyester commented 7 years ago

I do a lot of Node and Clojure at the moment.

I have a set of commands in my .vimrc manage a "unit test line" and enable to run this upon save in a NeoTerm.

I also use :TREPLSendLine and :TREPLSendSelection and :T <I want this stuff in my terminal>.

In effect I want :Topen to just open bash and then I can lein repl, npm test or something much more specific depending on what I'm doing at that moment.

I realize this might not be completely what NeoTerm is designed for, but it seems like the VIM plugin which is closest and the best at the moment for my mix of use cases.

I used to start NeoTerm with the following config:

let g:neoterm_shell = bash

This worked well, for my unit test runner, except the first time I used :TREPLSendLine it would run a phantom lein repl.

I thought changing my config to

let g:neoterm_repl_command = "bash"
let g:neoterm_direct_open_repl = 1

But this doesn't work at all :-(

forbesmyester commented 7 years ago

We did this and it's awesome!