ai.vim  by aduros

Neovim plugin for generating and editing text

created 2 years ago
297 stars

Top 90.4% on sourcepulse

GitHubView on GitHub
Project Summary

This plugin provides a minimalist interface for Neovim users to generate and edit text using OpenAI's GPT models. It targets developers and writers who want to leverage AI for code completion, text generation, and in-place editing directly within their editor. The primary benefit is seamless AI integration into the Neovim workflow, enhancing productivity for various text-based tasks.

How It Works

The plugin integrates with OpenAI's API to perform text generation and editing. It supports several modes: automatic completion in insert mode (triggered by <Ctrl-A>), prompt-based generation in normal mode (via :AI <prompt>), and in-place editing of selected text. It also features streaming support for completions, providing a more responsive user experience.

Quick Start & Requirements

  • Install via vim-plug: Plug 'aduros/ai.vim'
  • Requires an $OPENAI_API_KEY environment variable.
  • Requires curl to be installed.
  • Full help available via :help ai.vim.

Highlighted Details

  • Seamless text completion in insert mode with <Ctrl-A>.
  • In-place editing of selected text with custom prompts.
  • Supports both code and natural language text.
  • Customizable shortcuts for complex prompts.

Maintenance & Community

No specific contributors, sponsorships, or community links (Discord/Slack) are mentioned in the README.

Licensing & Compatibility

The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The plugin relies on OpenAI's API, meaning usage is subject to OpenAI's terms and potential costs. Users must be aware of the accuracy limitations of GPT models and the privacy implications of sending text to OpenAI, especially for sensitive information.

Health Check
Last commit

1 year ago

Responsiveness

1 day

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

Explore Similar Projects

Feedback? Help us improve.