{"id":18940118,"url":"https://github.com/gw31415/deepl.vim","last_synced_at":"2025-09-05T18:43:44.080Z","repository":{"id":58872946,"uuid":"533760834","full_name":"gw31415/deepl.vim","owner":"gw31415","description":"Vim functions to wrap the DeepL API.","archived":false,"fork":false,"pushed_at":"2022-09-09T06:50:41.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-25T09:41:03.138Z","etag":null,"topics":["deepl","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":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gw31415.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}},"created_at":"2022-09-07T12:42:19.000Z","updated_at":"2022-09-08T12:04:59.000Z","dependencies_parsed_at":"2023-01-18T01:45:14.836Z","dependency_job_id":null,"html_url":"https://github.com/gw31415/deepl.vim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gw31415/deepl.vim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2Fdeepl.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2Fdeepl.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2Fdeepl.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2Fdeepl.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gw31415","download_url":"https://codeload.github.com/gw31415/deepl.vim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gw31415%2Fdeepl.vim/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266936358,"owners_count":24009407,"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-07-24T02:00:09.469Z","response_time":99,"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":["deepl","vim"],"created_at":"2024-11-08T12:20:43.604Z","updated_at":"2025-07-25T01:06:45.413Z","avatar_url":"https://github.com/gw31415.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeepL.vim\n\nProvides functions to wrap the [DeepL API](https://www.deepl.com/en/docs-api/).\n\nThis plugin provides only simple functions. If you need commands, see\n[gw31415/deepl-commands.nvim](https://github.com/gw31415/deepl-commands.nvim).\n\n## Installation\n\n### 1. Installation of this plugin\n\n[Plug.vim](https://github.com/junegunn/vim-plug)\n```vim\nPlug 'gw31415/deepl.vim'\n```\n\n[dein.vim](https://github.com/Shougo/dein.vim)\n```vim\ncall dein#add('gw31415/deepl.vim')\n```\n\n[packer.nvim](https://github.com/wbthomason/packer.nvim)\n```lua\nuse 'gw31415/deepl.vim'\n```\n\n### 2. Configuration of Auth Key\n\n```vim\nlet g:deepl_auth_key = '{Your auth key of DeepL API}'\n```\n\n## Example\nIn the example below, the command `:{range}DeepL` is created that translates\nthe selected lines and adds the translation just below the selection. If the\ncommand called with a exclamation mark ( `:{range}DeepL!` ), the lines will be\nreplaced with the translation.\n\n```vim\nfu! s:deepl(l1, l2, bang) abort\n\tlet in = join(getline(a:l1, a:l2), \"\\n\")\n\ttry\n\t\tlet out = split(deepl#translate(in, 'EN'), \"\\n\")\n\tcatch\n\t\techoh ErrorMsg | ec v:exception | echoh None\n\t\tretu\n\tendt\n\tif a:bang == ''\n\t\tcal append(a:l2, out)\n\tel\n\t\tcal setline(a:l1, out)\n\ten\nendfu\ncom! -range -bang DeepL cal s:deepl(\u003cline1\u003e, \u003cline2\u003e, '\u003cbang\u003e')\n```\n\n## Related Projects\n- [deepl-commands.nvim](https://github.com/gw31415/deepl-commands.nvim): Provides the DeepL command using this deepl.vim plugin.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgw31415%2Fdeepl.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgw31415%2Fdeepl.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgw31415%2Fdeepl.vim/lists"}