kassio / neoterm

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

[question] issue when closing split/terminal #15

Closed tejo closed 9 years ago

tejo commented 9 years ago

Hi,

when I run a test (rspec) with neoterm#test#run('file'), a new split is created and the test runs in this new split. If I close this split and rerun the test nothing happens, I would expect a new split with a new term. I have to relaunch nvim to get the test run again. Is this the desired behavior?

thanks

Teo

kassio commented 9 years ago

Hi @tejo, if you close the terminal buffer with :q this will happen, because the buffer wasn't close, just hid. I'm studding a way to "re-open" the terminal if it's hidden.

tejo commented 9 years ago

@kassio that makes sense. For now I'll use :bd! instead of :q. Thanks.

kassio commented 9 years ago

You, also, may use the neoterm close_all() function, it'll close all terminal buffers:

nnoremap <silent> ,tc :call neoterm#close_all()<cr>