{"id":16276477,"url":"https://github.com/karoliskoncevicius/vim-sendtowindow","last_synced_at":"2025-03-16T13:31:19.835Z","repository":{"id":44460313,"uuid":"67956828","full_name":"karoliskoncevicius/vim-sendtowindow","owner":"karoliskoncevicius","description":"Small vim plugin implementing a send-to-window operator.","archived":false,"fork":false,"pushed_at":"2021-09-03T19:06:52.000Z","size":17,"stargazers_count":90,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T09:43:47.986Z","etag":null,"topics":["neovim","repl","send-code","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karoliskoncevicius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-11T22:04:28.000Z","updated_at":"2025-01-24T02:05:50.000Z","dependencies_parsed_at":"2022-09-09T13:11:35.692Z","dependency_job_id":null,"html_url":"https://github.com/karoliskoncevicius/vim-sendtowindow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karoliskoncevicius%2Fvim-sendtowindow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karoliskoncevicius%2Fvim-sendtowindow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karoliskoncevicius%2Fvim-sendtowindow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karoliskoncevicius%2Fvim-sendtowindow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karoliskoncevicius","download_url":"https://codeload.github.com/karoliskoncevicius/vim-sendtowindow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243817057,"owners_count":20352489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neovim","repl","send-code","vim"],"created_at":"2024-10-10T18:48:30.364Z","updated_at":"2025-03-16T13:31:19.541Z","avatar_url":"https://github.com/karoliskoncevicius.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-sendtowindow\n\nVim operator to send text from one window to another.\n\nMain use case is sending code to and from the REPL running inside `:terminal` buffer.\n\n## Demo ##\n\n1. Sending lines using motions\n\n![demo1](https://i.imgur.com/qsB11um.gif)\n\n2. Sending parts of a line using motions\n\n![demo2](https://i.imgur.com/wSzV7nV.gif)\n\n3. Sending paragraphs using text objects\n\n![demo3](https://i.imgur.com/gmJ6mow.gif)\n\n4. Sending text using visual selections\n\n![demo4](https://i.imgur.com/mp6F160.gif)\n\n5. Sending commands back - from REPL to script\n\n![demo5](https://i.imgur.com/jhEcq7g.gif)\n\n## Installation ##\n\nWith your favorite plugin manager. In my case it's vim-plug:\n\n`Plug 'karoliskoncevicius/vim-sendtowindow'`\n\nOr manually copy the contents of the **plugin** folder to your\n**./vim/plugin/** directory.\n\n## Features ##\n\n* Can send text between any two adjacent vim windows.\n* Text can be defined by visual selection, motions and text objects.\n* Tries to position the cursor in a convenient place after each call.\n* Dot repeatable.\n\n## Maps ##\n\nBy default it uses the following maps:\n\n* `\u003cspace\u003el` sends to the right window\n* `\u003cspace\u003ek` sends to the top window\n* `\u003cspace\u003ej` sends to the bottom window\n* `\u003cspace\u003eh` sends to the left window\n\nIn order to change the above key maps add the following to your *vimrc*:\n\n    let g:sendtowindow_use_defaults=0\n\nAnd then remap the commands as you see fit.\nFor example this would map all the commands to L, H, K and J respectively:\n\n    nmap L \u003cPlug\u003eSendRight\n    xmap L \u003cPlug\u003eSendRightV\n    nmap H \u003cPlug\u003eSendLeft\n    xmap H \u003cPlug\u003eSendLeftV\n    nmap K \u003cPlug\u003eSendUp\n    xmap K \u003cPlug\u003eSendUpV\n    nmap J \u003cPlug\u003eSendDown\n    xmap J \u003cPlug\u003eSendDownV\n\n## See Also ##\n\nIf instead you are looking for a plugin with more features and auto-magic, here is a list to choose from:\n\n- [jpalardy/vim-slime](https://github.com/jpalardy/vim-slime)\n- [jgdavey/tslime.vim](https://github.com/jgdavey/tslime.vim)\n- [Vigemus/iron.nvim](https://github.com/Vigemus/iron.nvim)\n- [kassio/neoterm](https://github.com/kassio/neoterm)\n- [benmills/vimux](https://github.com/benmills/vimux)\n- [esamattis/slimux](https://github.com/esamattis/slimux)\n- [jebaum/vim-tmuxify](https://github.com/jebaum/vim-tmuxify)\n- [ervandew/screen](https://github.com/ervandew/screen)\n- [sillybun/vim-repl](https://github.com/sillybun/vim-repl)\n- [khorser/vim-repl](https://github.com/khorser/vim-repl)\n- [rhysd/reply.vim](https://github.com/rhysd/reply.vim)\n- [habamax/vim-sendtoterm](https://github.com/habamax/vim-sendtoterm)\n- [urbainvaes/vim-ripple](https://github.com/urbainvaes/vim-ripple)\n- [axvr/zepl.vim](https://github.com/axvr/zepl.vim)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaroliskoncevicius%2Fvim-sendtowindow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaroliskoncevicius%2Fvim-sendtowindow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaroliskoncevicius%2Fvim-sendtowindow/lists"}