diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-04 18:48:54 +0100 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-04 18:48:54 +0100 |
| commit | 8219fff08f29a1aa9ab4933d15318cb8919846ac (patch) | |
| tree | ed6568739ae76a6000662fdb0bbdbe912ea611db /README.md | |
| parent | 64231457520688f0832494ed72a545043b8d69cf (diff) | |
| download | vim-ai-8219fff08f29a1aa9ab4933d15318cb8919846ac.tar.gz | |
new commands docu
Diffstat (limited to '')
| -rw-r--r-- | README.md | 25 |
1 files changed, 23 insertions, 2 deletions
@@ -26,9 +26,30 @@ The plugin requires `python3` and `pip3` to be installed. ## Usage -### Basic usage +### :AI -`:AI {prompt}` - completes selected text (visual mode) or text on the current line (normal mode). Passing optional `{prompt}` parameter prepends it to the final prompt. +`:AI` - complete the text on the current line + +`:AI {prompt}` - complete the prompt + +`(visual selection) :AI` - complete the selection + +`(visual selection) :AI {instruction}` - complete the selection using the instruction + +### :AIEdit + +`(visual selection)? :AIEdit` - edit the current line or the selection + +`(visual selection)? :AIEdit {instruction}` - edit the current line or the selection using the instruction + +### :AIChat + + +`:AIChat` - continue or start a new conversation. + +`(visual selection)? :AIChat {instruction}?` - start a new conversation given the selection, the instruction or both + +## Configuration ### Key bindings |