diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-04 19:08:19 +0100 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-04 19:08:19 +0100 |
| commit | d1030eb6368c9d9d205889304d1875213925a711 (patch) | |
| tree | c8cbbdcc5760e7eee944256103f323538554ee35 /README.md | |
| parent | 8219fff08f29a1aa9ab4933d15318cb8919846ac (diff) | |
| download | vim-ai-d1030eb6368c9d9d205889304d1875213925a711.tar.gz | |
updated command customization docu
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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>) ``` |