sponsor Vim development Vim logo Vim Book Ad

vim-ai : AI-powered code assistant for Vim. OpenAI and ChatGPT plugin for Vim and Neovim

 script karma  Rating 72/26, Downloaded by 431  Comments, bugs, improvements  Vim wiki

created by
Martin Bielik
 
script type
utility
 
description
This plugin adds Artificial Intelligence (AI) capabilities to your Vim and Neovim.
You can generate code, edit text, or have an interactive conversation with GPT models, all powered by OpenAI's API.

Repository:
https://github.com/madox2/vim-ai

Features:
- Generate text or code, answer questions with AI
- Edit selected text in-place with AI
- Interactive conversation with ChatGPT

Commands:
- :AI - complete text
- :AIEdit - edit selected text
- :AIChat - start/continue conversation with OpenAI chat models

Disclaimer:
- Accuracy: GPT is good at producing text and code that looks correct at first glance, but may be completely wrong. Be sure to thoroughly review, read and test all output generated by this plugin!
- Privacy: This plugin sends text to OpenAI when generating completions and edits. Therefore, do not use it on files containing sensitive information.

More details:
https://github.com/madox2/vim-ai
 
install details
Works in Vim 8+, requires python 3 and openai-python
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-ai.tar.gz 1.6.0 2023-10-04 8.0 Martin Bielik removed obsolete models
vim-ai.tar.gz 1.5.0 2023-04-25 8.0 Martin Bielik - Added custom commands
- new :AINewChat command
- Improving completion responses
- Open chat presets
- Chat per viewport support
vim-ai.tar.gz 1.4.0 2023-04-14 8.0 Martin Bielik removed openai dependency, added chat-options
vim-ai.tar.gz 1.3.0 2023-04-08 8.0 Martin Bielik Added syntax highlighting in chat
vim-ai.tar.gz 1.3.0 2023-04-06 8.0 Martin Bielik Chat interface configuration, complete/edit engines to allow chat models
vim-ai.tar.gz 1.2.0 2023-03-23 7.0 Martin Bielik openai configuration and other small improvements
vim-ai.tar.gz 1.1.0 2023-03-16 8.0 Martin Bielik live streaming AI responses
vim-ai.tar.gz 1.0.0 2023-03-07 8.0 Martin Bielik Initial upload
ip used for rating: 3.229.124.236

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github