diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-03 18:09:21 +0100 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-03 18:09:21 +0100 |
| commit | 8421f691816c61d8cb2f2147d6c6aacfd42c890d (patch) | |
| tree | 11b860d6ac58236f7086902c7eb092603e81ee7c /README.md | |
| parent | baf963c8801246033f67005c77601455996b433a (diff) | |
| download | vim-ai-8421f691816c61d8cb2f2147d6c6aacfd42c890d.tar.gz | |
using openai api directly
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -9,9 +9,6 @@ Complete text in vim using OpenAI. Prerequisites: ```sh -# install https://github.com/peterdemin/openai-cli -pip install openai-cli - # configure openai api key https://platform.openai.com/account/api-keys echo "YOUR_OPENAPI_TOKEN" > ~/.config/openai.token @@ -19,12 +16,14 @@ echo "YOUR_OPENAPI_TOKEN" > ~/.config/openai.token export OPENAI_API_TOKEN="YOUR_OPENAPI_TOKEN" ``` -Add plugin to your `.vimrc`, e.g. using `vim-plug`: +Add plugin to your `.vimrc` using `vim-plug`: ```vim -Plug 'madox2/vim-ai' +Plug 'madox2/vim-ai', { 'do': './install.sh' } ``` +The plugin requires `python3` and `pip` to be installed. + ## Usage ### Basic usage |