LLaMA Vim 插件 是 AI Skill Hub 本期精选AI工具之一。已获得 2.0k 颗 GitHub Star,综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
LLaMA Vim 插件 是一款基于 Vim Script 开发的开源工具,专注于 Vim、LLM、代码补全 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
LLaMA Vim 插件 是一款基于 Vim Script 开发的开源工具,专注于 Vim、LLM、代码补全 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 克隆仓库 git clone https://github.com/ggml-org/llama.vim cd llama.vim # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 llama.vim --help # 基本运行 llama.vim [options] <input> # 详细使用说明请查阅文档 # https://github.com/ggml-org/llama.vim
# llama.vim 配置说明 # 查看配置选项 llama.vim --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export LLAMA.VIM_CONFIG="/path/to/config.yml"
Local LLM-assisted text completion.
<img width="485" alt="image" src="https://github.com/user-attachments/assets/a950e38c-3b3f-4c46-94fe-0d6e0f790fc6">
</div>
https://github.com/user-attachments/assets/641a6e72-f1a2-4fe5-b0fd-c2597c6f4cdc
https://github.com/user-attachments/assets/68bff15b-2d91-4800-985d-b7f110a0ccb7
---
Insert modeTabShift+Tab<leader>lli Plug 'ggml-org/llama.vim'
cd ~/.vim/bundle
git clone https://github.com/ggml-org/llama.vim
Then add Plugin 'llama.vim' to your .vimrc in the vundle#begin() section.
{
'ggml-org/llama.vim',
}
The plugin requires a llama.cpp server instance to be running at g:llama_config.endpoint_fim and/or g:llama_config.endpoint_inst.
brew install llama.cpp
winget install llama.cpp
Either build from source or use the latest binaries: https://github.com/ggml-org/llama.cpp/releases
<img width="1758" alt="image" src="https://github.com/user-attachments/assets/8f5748b3-183a-4b7f-90e1-9148f0a58883">
You can customize llama.vim by setting the g:llama_config variable.
Examples:
" put before llama.vim loads
let g:llama_config = { 'show_info': 0 }
let g:llama_config.show_info = v:false
{
'ggml-org/llama.vim',
init = function()
vim.g.llama_config = {
auto_fim = false,
}
end,
}
let g:llama_config.keymap_fim_trigger = "<leader>llf"
let g:llama_config.keymap_fim_accept_full = "<Tab>"
let g:llama_config.keymap_fim_accept_line = "<S-Tab>"
let g:llama_config.keymap_fim_accept_word = "<leader>ll]"
let g:llama_config.keymap_inst_trigger = "<leader>lli"
let g:llama_config.keymap_inst_rerun = "<leader>llr"
let g:llama_config.keymap_inst_continue = "<leader>llc"
let g:llama_config.keymap_inst_accept = "<Tab>"
let g:llama_config.keymap_inst_cancel = "<Esc>"
let g:llama_config.profiles = {
\ 'spark': 'http://192.168.0.66:8080',
\ 'gmktec': 'http://192.168.0.65:8080',
\ }
let g:llama_config.profile = 'spark'
Use :LlamaProfile to show the available profiles and :LlamaProfile spark to switch both FIM and instruction requests to another server. Profile names support command-line completion. The selected profile is persisted and :LlamaProfileReset can be used to restore the profile (or custom endpoints) configured in .vimrc.
This only allows the host servers to be specified, not the models used which are configured using model_fim and model_inst. But using consistent naming accross servers, or using server aliases, one can make this independant of the actual selected profile. For example, using something like:
\ 'model_fim': 'fim_model',
\ 'model_inst': 'inst_model', And then in the server configuration, something like the following can be used: [qwen3.8-27B]
alias = inst_model,pi And likewise for the fim_model.
Please refer to :help llama_config or the source for the full list of options.
Here are recommended settings, depending on the amount of VRAM that you have:
llama-server --fim-qwen-30b-default
llama-server --fim-qwen-7b-default
llama-server --fim-qwen-3b-default
llama-server --fim-qwen-1.5b-default
Use :help llama for more details.
高质量的 Vim 插件,AI 辅助编码
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,LLaMA Vim 插件 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | llama-vim |
| 原始描述 | 开源AI工具:Vim plugin for LLM-assisted code/text completion。⭐2.0k · Vim Script |
| Topics | VimLLM代码补全AI |
| GitHub | https://github.com/ggml-org/llama.vim |
| License | MIT |
| 语言 | Vim Script |
收录时间:2026-06-05 · 更新时间:2026-06-05 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。