Table of Contents
generating a working todo web app with chatgpt-vim
To get a local copy up and running follow these simple example steps.
- openai api key
- set openai key env variable, add this in your .bashrc
export OPENAI_API_KEY=sk-yourapikey
this plugin also relies on the following utils:
- bash
- curl
- jq
- Install with vim plugin manager of your choice
If there is a ~/.config/openai.token the openai api will be used by default.
:Gpt
Prompts the user for a prompt and then uses OpenAI's GPT API or ChatGPT to generate a response.:GptRun
Prompts the user for a command to run on the current file and then uses OpenAI's GPT API to generate a response based on the contents of the current file and run log.:GptFile
Prompts the user for a prompt and then uses OpenAI's GPT API to generate a response based on the contents of the current file.
gpt
Maps to the:Gpt
command.gpr
Maps to the:GptRun
command.gpf
Maps to the:GptFile
command.
- Ask ChatGPT from Vim
- Review output
- Write output to file on user Confirmation
- Hook up to openai api
- Add more functions
- Send file contents along with request
- Send file contents and run log along with request
- Send visually selected contents along withrequest and replace selected
- More useful stuff as I think of it
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Twitter: @0xStabby
Project Link: https://github.com/0xStabby/chatgpt-vim