vim_codex  by tom-doerr

Vim plugin for AI-powered code completion

created 3 years ago
273 stars

Top 95.3% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This plugin integrates OpenAI's Codex with the Vim editor, offering AI-powered code completion to enhance developer productivity. It targets Vim users seeking intelligent, context-aware code suggestions directly within their workflow.

How It Works

The plugin leverages OpenAI's Codex API to generate code completions. Users trigger the CreateCompletion command within Vim, optionally specifying the desired number of tokens. For line-specific completion, CreateCompletionLine is available. The plugin maps these commands to convenient keyboard shortcuts, such as <Leader>co or Ctrl+x, for seamless integration into editing.

Quick Start & Requirements

  • Install via Vim plugin managers (Pathogen, Vundle).
  • Requires openai Python package (pip3 install openai).
  • OpenAI API key must be configured in ~/.config/openaiapirc.
  • Documentation: https://github.com/tom-doerr/vim_codex

Highlighted Details

  • AI-powered code completion using OpenAI Codex.
  • Supports full buffer completion and line-specific completion.
  • Configurable via .vimrc for custom key mappings.
  • Manual updates via git pull in the plugin directory.

Maintenance & Community

No specific community channels or active maintainer information is provided in the README.

Licensing & Compatibility

The README does not specify a license. Compatibility with commercial or closed-source projects is undetermined.

Limitations & Caveats

Requires an active OpenAI API key, which may incur costs. The plugin's maintenance status and community support are not detailed.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
8 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.