tpope / vim-fireplace

fireplace.vim: Clojure REPL support
https://www.vim.org/scripts/script.php?script_id=4978
1.75k stars 139 forks source link

Annoying scratch buffer at the top of the window #164

Closed Heliosmaster closed 10 years ago

Heliosmaster commented 10 years ago

When lein repl is connected to my vim instance, i have this annoying behavior:

as soon as I start typing, a scratch buffer pops at the top of the screen, shifting the text (that i am looking for) down a few lines, making the coding troublesome.

Screenshots:

Before autocompletion kicks in:

before

after

I'm not entirely sure this is a wanted behavior, however my knowledge of vim(script) is somewhat limited and i have no idea how to turn it off or change it in any way.

With no repl connected, of course there is no problem, but then a lot of the good gets also thrown away.

For reference, I have yadr installed and vim-fireplace, vim-clojure-static, rainbow-parentheses

tpope commented 10 years ago
set completeopt-=preview
glts commented 9 years ago

Would you consider adding something like

autocmd CompleteDone *.clj pclose

to fireplace.vim to close the preview window automatically?

tpope commented 9 years ago

That would imply the Clojure completion preview window is somehow more worthy of closing than other languages, which I don't buy.