summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-03-03 18:09:21 +0100
committerMartin Bielik <mx.bielik@gmail.com>2023-03-03 18:09:21 +0100
commit8421f691816c61d8cb2f2147d6c6aacfd42c890d (patch)
tree11b860d6ac58236f7086902c7eb092603e81ee7c /README.md
parentbaf963c8801246033f67005c77601455996b433a (diff)
downloadvim-ai-8421f691816c61d8cb2f2147d6c6aacfd42c890d.tar.gz
using openai api directly
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/README.md b/README.md
index 59d559d..20475c8 100644
--- a/README.md
+++ b/README.md
@@ -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