diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-28 23:02:52 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-28 23:02:52 +0200 |
| commit | 4ab7019b1c9e2379ad114d40aedd0d1f55477674 (patch) | |
| tree | bd505a1436e1e2c92c195237d85b2dfbe466a7e9 /README.md | |
| parent | 2f8c9804878f3bdbea63ac78cee38a778158aa06 (diff) | |
| download | vim-ai-4ab7019b1c9e2379ad114d40aedd0d1f55477674.tar.gz | |
redo command docu
Diffstat (limited to '')
| -rw-r--r-- | README.md | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -49,7 +49,6 @@ Plug 'madox2/vim-ai', { 'do': './install.sh' } ### :AIChat - `:AIChat` - continue or start a new conversation. `(visual selection)? :AIChat {instruction}?` - start a new conversation given the selection, the instruction or both @@ -76,6 +75,13 @@ You are a Clean Code expert, I have the following code, please refactor it in a Supported chat roles are **`>>> system`**, **`>>> user`** and **`<<< assistant`** +### :AIRedo + +Use this immediately after `AI`/`AIEdit`/`AIChat` command in order to re-try or get an alternative completion. +Note that the randomness of responses heavily depends on the [`temperature`](https://platform.openai.com/docs/api-reference/completions/create#completions/create-temperature) parameter. + +`:AIRedo` - repeat last AI command + ## Configuration ### Key bindings @@ -94,6 +100,9 @@ nnoremap <leader>s :AIEdit fix grammar and spelling<CR> " trigger chat xnoremap <leader>c :AIChat<CR> nnoremap <leader>c :AIChat<CR> + +" redo last AI command +nnoremap <leader>r :AIRedo<CR> ``` ### Completion configuration |