{"id":31073565,"url":"https://github.com/roguh/vis-copypasta","last_synced_at":"2025-09-16T01:48:59.485Z","repository":{"id":302048855,"uuid":"627344446","full_name":"roguh/vis-copypasta","owner":"roguh","description":"A vis plugin that creates keybindings for copying and pasting to the system clipboard with Ctrl-V and Ctrl-C.","archived":false,"fork":false,"pushed_at":"2023-04-13T16:50:21.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T07:13:41.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/roguh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-13T09:16:49.000Z","updated_at":"2025-04-30T18:28:47.000Z","dependencies_parsed_at":"2025-06-30T09:52:00.372Z","dependency_job_id":"7b6cf1ee-c220-46a6-8865-6b4b1d5de004","html_url":"https://github.com/roguh/vis-copypasta","commit_stats":null,"previous_names":["roguh/vis-copypasta"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roguh/vis-copypasta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fvis-copypasta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fvis-copypasta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fvis-copypasta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fvis-copypasta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roguh","download_url":"https://codeload.github.com/roguh/vis-copypasta/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Fvis-copypasta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275348493,"owners_count":25448629,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-09-16T01:48:54.699Z","updated_at":"2025-09-16T01:48:59.472Z","avatar_url":"https://github.com/roguh.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vis-copypasta\n\nA vis plugin that creates keybindings for copying and pasting to the system clipboard.\n\n## Installing this vis plugin\n\nDownload the repository. One way is with the git CLI:\n\n```\ngit clone https://github.com/roguh.vis-copypasta\n```\n\nCopy `copypasta.lua` next to `visrc.lua`.\n\n```sh\n$ ls\nvisrc.lua copypasta.lua\n```\n\nAdd this line to your `visrc.lua`:\n\n```lua\nrequire('copypasta')\n```\n\n`visrc.lua` can be found at `XDG_CONFIG_HOME/vis` or `$HOME/.config/vis`.\nIf not set, use `:help` for instructions on how to initialize `vis`.\nYou may also install it in Lua's path.\nSee documentation about the [`require` function](https://www.lua.org/pil/8.1.html).\n\nIf the copypasta plugin is found in another directory, use the different path and no `.lua` suffix:\n\n```lua\ncopypasta = require('plugins-directory/vis-copypasta/copypasta')\n-- Call this if the copypasta directory doesn't exist\ncopypasta.set_directory(os.getenv('HOME') .. '/.cache/bak')\n```\n\n```sh\n$ tree\n.\n├── vis-copypasta\n│   ├── README.md\n│   └── copypasta.lua\n└── visrc.lua\n```\n\nThis module requires no configuration.\n\nSee [Vis' plugins documentation](https://github.com/martanne/vis/wiki/Plugins).\n\n### Alternative installation\n\nIt may be easier to simply copy and paste all of `copypasta.lua` into your `visrc.lua` ;)\n\n## Usage\n\nType Ctrl-V in `NORMAL` or `INSERT` modes.\n\nType Ctrl-C in `NORMAL` or `VISUAL_LINE` modes.\n\nCtrl-C does not work with multiple selections. It only copies the last value.\n\nAll of these commands use `vis`' built-in tool `vis-clipboard`, which is cross-platform.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froguh%2Fvis-copypasta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froguh%2Fvis-copypasta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froguh%2Fvis-copypasta/lists"}