A simple neovim plugin to allow to send a line or a visual selection to a target window. I am using this to send to a terminal, helpful for teaching.
-
Packer
use "kushaldas/pastewindow.nvim"
-
{ "kushaldas/pastewindow.nvim" }
require('pastewindow').setup()
:SetPasteWindow
Run this command in the target window, and then you can use the following keybinding.
<leader>tl To send the current line to the target window.
<leader>tv To send current visual selection to the target window.