hey.vim is a Vim plugin that utilizes the OpenAI API to edit text.
https://user-images.githubusercontent.com/5019902/236111592-23fa3a36-d65d-4af7-9b86-6fe0f3c08bb9.mp4
This plugin depends on vim-denops/denops.vim.
Plug 'vim-denops/denops.vim'
Plug 'tani/hey.vim'
You need to set OpenAI API key as OPENAI_API_KEY
environment variable.
hey_message_style
- It determines the style of the message, either 'window' or else implicitly 'popup' is accepted.hey_model_name
- It specifies the model name for the ChatOpenAI component, with the default being 'gpt-3.5-turbo'.hey_verbose
- It is a boolean which if true, the verbose output will be used, else the default is false.Note that if you're using denops-shared-server,
the environment variable is separate from Vim. In this case, you should set it to g:hey_openai_api_key
.
[range]Hey {prompt}
- Edit text with OpenAI API.HeyAbort
- Abort the current edit.g:hey_openai_api_key
- Set the OpenAI API key to use. If the value is not set, the OPENAI_API_KEY
environment variable will be used.g:hey_model_name
- Set the model name to use. The default is "gpt-3.5-turbo"
.g:hey_verbose
- Set the verbose mode. The default is v:false
.This software is released under the MIT License. https://git.io/mit-license