{"id":13746689,"url":"https://github.com/taoso/vim","last_synced_at":"2025-04-10T02:28:50.059Z","repository":{"id":68494279,"uuid":"63825803","full_name":"taoso/vim","owner":"taoso","description":"Taoso's vimrc","archived":false,"fork":false,"pushed_at":"2025-03-28T03:41:18.000Z","size":259,"stargazers_count":59,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T00:07:47.499Z","etag":null,"topics":["lua","neovim","nvim","vim"],"latest_commit_sha":null,"homepage":"https://github.com/taoso/vim","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taoso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-21T01:13:49.000Z","updated_at":"2025-03-28T03:41:22.000Z","dependencies_parsed_at":"2024-09-17T18:35:24.308Z","dependency_job_id":"596423fb-50f5-496f-9f69-02f0f4b6e973","html_url":"https://github.com/taoso/vim","commit_stats":{"total_commits":397,"total_committers":3,"mean_commits":"132.33333333333334","dds":"0.10831234256926947","last_synced_commit":"23d5c1f59a185bf4c537f5a232c70a80e4724ae3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoso%2Fvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoso%2Fvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoso%2Fvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoso%2Fvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taoso","download_url":"https://codeload.github.com/taoso/vim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143958,"owners_count":21054853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","neovim","nvim","vim"],"created_at":"2024-08-03T06:00:58.761Z","updated_at":"2025-04-10T02:28:50.037Z","avatar_url":"https://github.com/taoso.png","language":"Lua","readme":"# 涛叔的 Vim 配置\n\n这是我的 Vim 配置，仅支持 NeoVim。我写的 Vim 相关文章可以到[博客](https://taoshu.in/vim/)阅读。\n\n## 配置原则\n\n尽量使用 NeoVim 的默认配置、默认功能和默认键位映射。只改必要的配置，只添加必要的插件。\n\n拥抱现代化的 NeoVim，拥抱异步，拥抱 lua。使用24位真彩色主题。\n\n还有一点，只加自己能看懂的配置！从网上无脑复制别人配置的行为很不 Vim。\n\n## 插件管理\n\n使用 Vim 内置的 packages 功能配合 git submodule 管理插件，可以参考我的[文章](https://taoshu.in/vim/plug-git.html)。\n\n默认插件位置 `~/.config/nvim/pack/vendor/start`。其中的 vendor 可以根据个人喜好修改。\n\n## 目录结构\n\n配置目录结构如下：\n\n```\n▸ autoload/\n▸ lua/\n▸ pack/vendor/start/\n  init.vim\n  LICENSE\n  README.md\n  vim.lua\n```\n\n所有的个人工具方法都组织到 `autoload/lv.vim` 中，使用 `lv#` 名称空间。\n\n主配置文件为 `init.vim`，lua 的部分组织到 `vim.lua` 文件。\n\n## 常用插件\n\n### 主题\n\n使用默认主题。\n\n### 文件操作\n\n- [ag](https://github.com/taoso/ag.vim) 搜索文件内容\n- [fzf](https://github.com/taoso/fzf.vim) 搜索文件路径\n- [mru](https://github.com/taoso/mru.vim) 管理最近文件列表\n- [nvim-tree](https://github.com/nvim-tree/nvim-tree.lua) 查看目录结构\n\n以上列出的 ag/fzf/mru 都是我自己定制的插件，代码最多也就一百多行，够用就好，方便定制。\n这三个插件也是学习 vim/neovim 插件开发的好素材，不要错过。\n\n### Git集成\n\n- [gitsigns](https://github.com/lewis6991/gitsigns.nvim) 显示修改状态、提前历史、内容变更等\n- [vimagit](https://github.com/jreybert/vimagit) magit 的 Vim 版本，交互式、分部提交，非常方便\n\n### 编程相关\n\n- lsp 使用官方的 [lspconfig](https://github.com/neovim/nvim-lspconfig)\n- 代码高亮、缩进和语法检查使用 [treesitter](https://github.com/nvim-treesitter/nvim-treesitter)\n","funding_links":[],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaoso%2Fvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaoso%2Fvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaoso%2Fvim/lists"}