{"id":24623168,"url":"https://github.com/jcocozza/rct.vim","last_synced_at":"2025-03-19T02:08:48.358Z","repository":{"id":269766838,"uuid":"908400740","full_name":"jcocozza/rct.vim","owner":"jcocozza","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-21T16:10:11.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T17:24:22.443Z","etag":null,"topics":["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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcocozza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-26T01:37:49.000Z","updated_at":"2025-01-21T16:10:14.000Z","dependencies_parsed_at":"2025-01-21T17:21:55.297Z","dependency_job_id":"2dcb6637-4d74-4e70-a438-ca196d44a584","html_url":"https://github.com/jcocozza/rct.vim","commit_stats":null,"previous_names":["jcocozza/rct.vim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcocozza%2Frct.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcocozza%2Frct.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcocozza%2Frct.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcocozza%2Frct.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcocozza","download_url":"https://codeload.github.com/jcocozza/rct.vim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244339043,"owners_count":20437168,"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":["vim"],"created_at":"2025-01-25T03:33:51.057Z","updated_at":"2025-03-19T02:08:48.341Z","avatar_url":"https://github.com/jcocozza.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rct.vim\n\nThe vim plugin that wraps the [rct](https://github.com/jcocozza/rct) tool.\n\n## Rationale\n\nHere is the basic problem that this plugin aims to solve:\n\nWhen working in vim, occasionally one wants to copy text directly to the system clipboard.\nThis is usually done via `:\"+y` or `:\"*y` -- yanking into the buffer corresponding to the system clipboard.\nThis becomes problematic when working with vim on a remote machine.\nYanking into the system clipboard doesn't do anything useful because your local machine does not have access the remote's clipboard.\nThere are (of course) workarounds like X11 forwarding or tmux, but I've found that these are often frustrating to work with (for this purpose) and can be finicky.\nMoreover, this assumes that you have a version of vim that has the +clipboard option.\nEspecially in restricted environments, this might not be feasible.\n\nMy solution was to develop a basic cross platform cli, [rct](https://github.com/jcocozza/rct), that sends text between machines.\nThis plugin is a wrapper around it.\n\nThe idea is to reproduce the behavior of `:\"+y` or `:\"*y` except from remote to local.\nBy default, yanks to the `q` register will be sent to local if things are set up properly.\nIf you want to use a different register, simply change it in your `.vimrc` with the global variable: `g:rct_register`.\n\n## Installation\n\n`rct.vim` requires `rct` to be [set up](https://github.com/jcocozza/rct?tab=readme-ov-file#setup) and installed.\n\n## Basic Use\n\n0. [rct](https://github.com/jcocozza/rct) is installed and configured on local and remote\n\n1. On local machine\n\n```bash\nrct listen -d # run the rct listener in the background\n```\n\n2. By default any text yanked to `q` register will be sent to local by rct. Highlight text in vim, then `:\"qy`.\n\n3. Can now paste locally from the yanked text in vim\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcocozza%2Frct.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcocozza%2Frct.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcocozza%2Frct.vim/lists"}