summaryrefslogtreecommitdiff
path: root/doc/vim-ai.txt
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-03-28 23:02:52 +0200
committerMartin Bielik <mx.bielik@gmail.com>2023-03-28 23:02:52 +0200
commit4ab7019b1c9e2379ad114d40aedd0d1f55477674 (patch)
treebd505a1436e1e2c92c195237d85b2dfbe466a7e9 /doc/vim-ai.txt
parent2f8c9804878f3bdbea63ac78cee38a778158aa06 (diff)
downloadvim-ai-4ab7019b1c9e2379ad114d40aedd0d1f55477674.tar.gz
redo command docu
Diffstat (limited to '')
-rw-r--r--doc/vim-ai.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt
index 24a1ebe..d0519fd 100644
--- a/doc/vim-ai.txt
+++ b/doc/vim-ai.txt
@@ -54,7 +54,6 @@ https://platform.openai.com/docs/api-reference/completions
*:AIChat*
-
:AIChat continue or start a new conversation.
(selection)? :AIChat {instruction}? start a new conversation given the selection,
the instruction or both
@@ -72,6 +71,11 @@ Options: >
Check OpenAI docs for more infomration:
https://platform.openai.com/docs/api-reference/chat
+ *:AIRedo*
+
+:AIRedo repeat last AI command in order to re-try
+ or get an alternative completion.
+
CONFIGURATION *vim-ai-config*
To customize the default configuration, initialize the config variable with
@@ -100,6 +104,9 @@ Examples how configure key bindins and customize commands: >
xnoremap <leader>c :AIChat<CR>
nnoremap <leader>c :AIChat<CR>
+ " redo last AI command
+ nnoremap <leader>r :AIRedo<CR>
+
" command with custom context (vim-ai functions: AIRun, AIEditRun, AIChatRun)
command! -range -nargs=? AICode <line1>,<line2>call AIRun(<range>, "Programming syntax is " . &filetype . ", " . <f-args>)