summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-03-04 19:08:19 +0100
committerMartin Bielik <mx.bielik@gmail.com>2023-03-04 19:08:19 +0100
commitd1030eb6368c9d9d205889304d1875213925a711 (patch)
treec8cbbdcc5760e7eee944256103f323538554ee35 /README.md
parent8219fff08f29a1aa9ab4933d15318cb8919846ac (diff)
downloadvim-ai-d1030eb6368c9d9d205889304d1875213925a711.tar.gz
updated command customization docu
Diffstat (limited to '')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 86696df..35ce3c0 100644
--- a/README.md
+++ b/README.md
@@ -66,11 +66,11 @@ To customize and re-use prompts it is useful to put some context to the language
```vim
" key binding with custom context
-vnoremap <leader>s :AI fix grammar and spelling and use formal language<CR>
-nnoremap <leader>s :AI fix grammar and spelling and use formal language<CR>
+vnoremap <leader>s :AIEdit fix grammar and spelling and use formal language<CR>
+nnoremap <leader>s :AIEdit fix grammar and spelling and use formal language<CR>
-" command with custom context
-command! -range -nargs=? AICode <line1>,<line2>call AIRun("Programming syntax is " . &filetype, <f-args>)
+" command with custom context (vim-ai functions: AIRun, AIEditRun, AIChatRun)
+command! -range -nargs=? AICode <line1>,<line2>call AIRun("Programming syntax is " . &filetype . ", " . <f-args>)
```