From 232419deba9643800658d92607bd32c6648c5db9 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Fri, 24 Mar 2023 17:52:35 +0100 Subject: added keybindings to help --- doc/vim-ai.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'doc/vim-ai.txt') diff --git a/doc/vim-ai.txt b/doc/vim-ai.txt index 5657756..24a1ebe 100644 --- a/doc/vim-ai.txt +++ b/doc/vim-ai.txt @@ -84,6 +84,25 @@ a selection of options: > \ }, \} +KEY BINDINGS + +Examples how configure key bindins and customize commands: > + + " complete text on the current line or in visual selection + nnoremap a :AI + xnoremap a :AI + + " edit text with custom context + xnoremap s :AIEdit fix grammar and spelling + nnoremap s :AIEdit fix grammar and spelling + + " trigger chat + xnoremap c :AIChat + nnoremap c :AIChat + + " command with custom context (vim-ai functions: AIRun, AIEditRun, AIChatRun) + command! -range -nargs=? AICode ,call AIRun(, "Programming syntax is " . &filetype . ", " . ) + ABOUT *vim-ai-about* Contributions are welcome on GitHub: -- cgit v1.2.3