summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-02-27 21:29:55 +0100
committerGitHub <noreply@github.com>2023-02-27 21:29:55 +0100
commitb6c6e9d01984b9d8db5b1362692b745a850eb7a3 (patch)
tree50bda066ae68dc4c868d6a508ed40eb862b66201
parent7849ee09c54008cf2b87cd8af7e694367d14c879 (diff)
downloadvim-ai-b6c6e9d01984b9d8db5b1362692b745a850eb7a3.tar.gz
syntax highlighting
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 3596cce..c836e30 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ export OPENAI_API_TOKEN="YOUR_OPENAPI_TOKEN"
Add plugin to your `.vimrc`, e.g. using `vim-plug`:
-```vimscript
+```vim
Plug 'madox2/vim-ai'
```
@@ -35,7 +35,7 @@ Plug 'madox2/vim-ai'
Map keys in your `.vimrc` to trigger `:AI` command.
-```vimscript
+```vim
nnoremap <leader>a :AI<CR>
vnoremap <leader>a :AI<CR>
```
@@ -44,7 +44,7 @@ vnoremap <leader>a :AI<CR>
To customize and re-use prompts it is useful to put some context to the language model. You can do it with prepending text to `:AI` command.
-```vimscript
+```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>