madox2 / vim-ai

AI-powered code assistant for Vim. OpenAI and ChatGPT plugin for Vim and Neovim.
MIT License
662 stars 55 forks source link

Very Useful Tool #107

Open F1LT3R opened 3 months ago

F1LT3R commented 3 months ago

Just here to drop a little praise.

This tool is super useful. And your documentation is written nicely. It was easy to set things up.

Thanks a bunch for putting this together!

I accidentally signed up for Chat-GPT, not Open-AI, so I got stuck there for a minute on the Pay as You Go message.

But that's related to the messaging on the Open-AI website, not your work.

The roles integration is fantastic. This will be a great help with writing.

Thanks again.

# chat-gpt-roles.ini
[synonym]
prompt = list about 10 synonyms

[antonym]
prompt = list about 10 antonyms

[rewrite]
prompt = rewrite this text

[rewrite_creative]
prompt = rewrite this text

[rewrite_creative.options]
temperature = 0.8
" .vimrc
xnoremap <leader>r :AI /rewrite<CR>
xnoremap <leader>r :AI /rewrite<CR>

nnoremap <leader>w :AI /rewrite_creative<CR>                                                                   
nnoremap <leader>w :AI /rewrite_creative<CR>

xnoremap <leader>a :AI /antonym<CR>
nnoremap <leader>a :AI /antonym<CR>

xnoremap <leader>s :AI /synonym<CR>
nnoremap <leader>s :AI /synonym<CR>
dark                                                                                                           
1. Light
2. Bright
3. Clear
4. White
5. Radiant
6. Luminous
7. Shiny
8. Sunny
9. Brilliant
10. Glowing

The quick brown fox jumped over the lazy dog.                                                                  
The fast brown fox leaped over the sluggish dog
F1LT3R commented 3 months ago

Oh, one more thing...

It would be neat to have a global temperature control that showed up in the status line.

And use <leader>= and <leader>- to raise and lower the temperature manually depending on the context of your writing.

                                                                 👇
 NORMAL  README.md                                              °0.8 | unix | utf-8 | vim  100%  204:1