summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonfekt <Konfekt@users.noreply.github.com>2023-03-16 07:02:46 +0100
committerGitHub <noreply@github.com>2023-03-16 07:02:46 +0100
commit267df7588e60e4e4a4b7df72433a167b877cefb9 (patch)
treea4e68625d2cc4a48b1b6d11f1ab87fde5acd566b
parentcdc4ce29d1cea7fdace1b8669e13a85f1af1a8e8 (diff)
downloadvim-ai-267df7588e60e4e4a4b7df72433a167b877cefb9.tar.gz
do not clobber printable characters
`vnoremap` is for non-printable modifiers such as `Ctrl`
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)