diff options
| author | Konfekt <Konfekt@users.noreply.github.com> | 2023-03-16 07:02:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-16 07:02:46 +0100 |
| commit | 267df7588e60e4e4a4b7df72433a167b877cefb9 (patch) | |
| tree | a4e68625d2cc4a48b1b6d11f1ab87fde5acd566b | |
| parent | cdc4ce29d1cea7fdace1b8669e13a85f1af1a8e8 (diff) | |
| download | vim-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.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |