summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-03-16 16:19:03 +0100
committerGitHub <noreply@github.com>2023-03-16 16:19:03 +0100
commita726c49281b0f232ea1b84ed1c0e2438eef1d4cb (patch)
treea4e68625d2cc4a48b1b6d11f1ab87fde5acd566b
parentcdc4ce29d1cea7fdace1b8669e13a85f1af1a8e8 (diff)
parent267df7588e60e4e4a4b7df72433a167b877cefb9 (diff)
downloadvim-ai-a726c49281b0f232ea1b84ed1c0e2438eef1d4cb.tar.gz
Merge pull request #1 from Konfekt/patch-1
do not clobber printable characters
Diffstat (limited to '')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index b95dffd..d2776b6 100644
--- a/README.md
+++ b/README.md
@@ -84,7 +84,7 @@ Map keys in your `.vimrc` to trigger `:AI` command.
```vim
nnoremap <leader>a :AI<CR>
-vnoremap <leader>a :AI<CR>
+xnoremap <leader>a :AI<CR>
```
### Custom commands
@@ -93,11 +93,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 :AIEdit fix grammar and spelling and use formal language<CR>
+xnoremap <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>
" key binding to trigger chat
-vnoremap <leader>c :AIChat <CR>
+xnoremap <leader>c :AIChat <CR>
nnoremap <leader>c :AIChat <CR>
" command with custom context (vim-ai functions: AIRun, AIEditRun, AIChatRun)