Vim plugin for AI-powered code completion
Top 95.3% on sourcepulse
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
openai
Python package (pip3 install openai
).~/.config/openaiapirc
.Highlighted Details
.vimrc
for custom key mappings.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.
1 year ago
1 day