Skip to content

vim-slime fails to send text when Neovim's vim.opt.shell is set to "pwsh.exe" #472

@lksherpa

Description

@lksherpa

When configuring Neovim, setting vim.opt.shell = "pwsh.exe" breaks vim-slime functionality. Both :SlimeSendCurrentLine and <C-c> <C-c> run without errors but send no text to the target pane. This occurs with multiple targets (such as tmux and wezterm). The issue disappears as soon as the shell option is removed or changed to "cmd.exe".

I understand the basic differences between PowerShell and CMD, but I didn’t expect them to affect how vim-slime communicates with other panes. I’m sharing this in case it helps someone else avoid the same confusion. This seems more like a user error than a problem with vim-slime.

I have no clue what you take into account when writing the README but If anything, it might be helpful for it to mention that some shells—like PowerShell—can interfere with text transmission, as this was not obvious (for me at least) at first.

I can provide extensive information about my config but given the nature of this issue I did not deem it relevant to do so initially.

Have a lovely day :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions