From 400aa1e3743120d510e7925378d33de101c5db25 Mon Sep 17 00:00:00 2001 From: Patrick Cao Huu Thien Date: Thu, 28 Nov 2024 10:25:25 +0100 Subject: [PATCH] add plugin Codium / ollamma / translate with trans --- .vimrc_vundle | 42 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/.vimrc_vundle b/.vimrc_vundle index fe4e942..b7caef4 100755 --- a/.vimrc_vundle +++ b/.vimrc_vundle @@ -246,6 +246,40 @@ let g:ycm_language_server += " online deeplearning all language sementic completion system " Plugin 'zxqfl/tabnine-vim' +" Codeium - « free » coding assistant +" https://github.com/Exafunction/codeium.vim +Plugin 'Exafunction/codeium.vim' + + + + +" Ollama Support for Vim +" https://github.com/gergap/vim-ollama +" Plugin 'gergap/vim-ollama' +" Default chat model +let g:ollama_chat_model = 'llama3.2:1b' + +" Codellama models +" let g:ollama_model = 'codellama:7b' + +" " Codegemma (small and fast) +" let g:ollama_model = 'codegemma:2b' +" let g:ollama_fim_prefix = '<|fim_prefix|>' +" let g:ollama_fim_middle = '<|fim_middle|>' +" let g:ollama_fim_suffix = '<|fim_suffix|>' + +" " Deepseek-coder-v2 +let g:ollama_model = 'deepseek-coder:1.3b' +" let g:ollama_fim_prefix = '<|fim▁begin|>' +" let g:ollama_fim_suffix = '<|fim▁hole|>' +" let g:ollama_fim_middle = '<|fim▁end|>' + +" " activate debug +let g:ollama_debug = 1 +let g:ollama_logfile = '/home/patrick/vim-ollama.log' + + + " ansible " Plugin 'pearofducks/ansible-vim' " enable YAML for hosts.yml @@ -688,12 +722,12 @@ nmap , :cprevious imap , :cpreviousi nmap . :cnext imap . :cnexti -" edit alternative +" change alternative nmap / :e# " auto indent nmap i m`gg=G`` " try ; as : nmap ; : - - - +" translate with trans (https://github.com/soimort/translate-shell) +vmap fr :!trans -b :fr +vmap en :!trans -b :en