{"id":13484680,"url":"https://github.com/tom-doerr/vim_codex","last_synced_at":"2025-04-07T09:20:09.633Z","repository":{"id":40602486,"uuid":"400535966","full_name":"tom-doerr/vim_codex","owner":"tom-doerr","description":"Supercharge your Vim editor with AI-powered code completion using OpenAI Codex. Boost productivity and save time with intelligent suggestions.","archived":false,"fork":false,"pushed_at":"2024-03-28T02:09:53.000Z","size":5073,"stargazers_count":263,"open_issues_count":11,"forks_count":31,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-06T11:06:26.185Z","etag":null,"topics":["ai","codex","vim"],"latest_commit_sha":null,"homepage":"","language":"Python","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/tom-doerr.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":"2021-08-27T14:28:07.000Z","updated_at":"2025-03-25T19:28:43.000Z","dependencies_parsed_at":"2024-01-13T19:17:58.637Z","dependency_job_id":"e6c5bcbe-6359-4dfe-878f-e6cc83685978","html_url":"https://github.com/tom-doerr/vim_codex","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/tom-doerr%2Fvim_codex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-doerr%2Fvim_codex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-doerr%2Fvim_codex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-doerr%2Fvim_codex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tom-doerr","download_url":"https://codeload.github.com/tom-doerr/vim_codex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247622983,"owners_count":20968575,"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":["ai","codex","vim"],"created_at":"2024-07-31T17:01:29.754Z","updated_at":"2025-04-07T09:20:09.604Z","avatar_url":"https://github.com/tom-doerr.png","language":"Python","funding_links":[],"categories":["Python","Demos","Code writing and editing"],"sub_categories":["Products \u0026 tools"],"readme":"\u003ch1 align=\"center\"\u003e🤖 Vim Codex\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    An AI plugin that does the work for you.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/tom-doerr/vim_codex/stargazers\"\n        \u003e\u003cimg\n            src=\"https://img.shields.io/github/stars/tom-doerr/vim_codex?colorA=2c2837\u0026colorB=c9cbff\u0026style=for-the-badge\u0026logo=starship style=flat-square\"\n            alt=\"Repository's starts\"\n    /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/tom-doerr/vim_codex/issues\"\n        \u003e\u003cimg\n            src=\"https://img.shields.io/github/issues-raw/tom-doerr/vim_codex?colorA=2c2837\u0026colorB=f2cdcd\u0026\u0026style=for-the-badge\u0026logo=starship style=flat-square\"\n            alt=\"Issues\"\n    /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/tom-doerr/vim_codex/blob/main/LICENSE\"\n        \u003e\u003cimg\n            src=\"https://img.shields.io/github/license/tom-doerr/vim_codex?colorA=2c2837\u0026colorB=b5e8e0\u0026style=for-the-badge\u0026logo=starship style=flat-square\"\n            alt=\"License\"\n    /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src='https://user-images.githubusercontent.com/31919558/204023837-c753cb9e-88d0-4ad9-bd2f-fdffcc915351.gif'\u003e\n\u003c/p\u003e\n\nThis is a simple plugin for Vim that will allow you to use OpenAI Codex.\nTo use this plugin you need to get access to OpenAI's [Codex API](https://openai.com/blog/openai-codex/).\n\n\n\n## Installation\n\nThe easiest way to install the plugin is to install it as a bundle.\nFor example, using [Pathogen](https://github.com/tpope/vim-pathogen):\n\n1. Get and install [pathogen.vim](https://github.com/tpope/vim-pathogen). You can skip this step\n   if you already have it installed.\n\n2. `cd ~/.vim/bundle`\n\n3. `git clone git@github.com:tom-doerr/vim_codex.git`\n\nBundle installs are known to work fine also when using [Vundle](https://github.com/gmarik/vundle). Other\nbundle managers are expected to work as well.\n\n\n\nAfter installing the plugin, you need to install the openai package::\n```\npip3 install openai\n```\n\nAfter running `:CreateCompletion` once, the file `~/.config/openaiapirc` is created where you need to enter your OpenAI authentication information.\nYou can find your authentication information on the [website](https://beta.openai.com/account/api-keys).\n\n\n\n## Usage\nThe plugin provides a `CreateCompletion` command which you can call by default using the mapping \n`\u003cLeader\u003eco`.\nYou can give the `CreateCompletion` command the number of tokens it should produce as an argument, e.g. `CreateCompletion 1000`.\nIf you want to just complete the current line, run `CreateCompletionLine`.\n\nTo complete the current text from insert and normal mode using Ctrl+x, you can add the following\nlines to your .vimrc::\n```\nnnoremap  \u003cC-x\u003e :CreateCompletion\u003cCR\u003e\ninoremap  \u003cC-x\u003e \u003cEsc\u003eli\u003cC-g\u003eu\u003cEsc\u003el:CreateCompletion\u003cCR\u003e\n```\n\n\n## Updating\n\n### Manually\n\nIn order to update the plugin, go to its bundle directory and use\nGit to update it:\n\n1. `cd ~/.vim/bundle/vim_codex`\n\n2. `git pull`\n\n\n### With Vundle\n\nUse the `:BundleUpdate` command provided by Vundle, for example invoking\nVim like this::\n```\n% vim +BundleUpdate\n```\n\n-------------------------------------------------------------------\n\n[Traffic Statistics](https://tom-doerr.github.io/github_repo_stats_data/tom-doerr/vim_codex/latest-report/report.html)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-doerr%2Fvim_codex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftom-doerr%2Fvim_codex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-doerr%2Fvim_codex/lists"}