Sample Header Ad - 728x90

How to preset slime target to vim terminal by default?

0 votes
0 answers
27 views
When I use vim-slime , every time I open a vimterminal I have to reconfigure it.
:let g:slime_target="vimterminal"
Followed by:
SlimeConfig
And then I choose the terminal I just opened as the target for the buffer I am in via a read statement from the plugin. This is becoming tiresome; I seem to be able to set the slime_target as vimterminal using my .vimrc, but it is still unclear to me how to call the SlimeConfig command and pass it an argument on the latest newly opened terminal upon opening the vimterminal. I've found the following thread that seems to address this, but it appears that it's fired every time one switches windows.
Asked by leeand00 (4937 rep)
Jul 23, 2025, 03:52 PM