{"id":26672216,"url":"https://github.com/chawuciren/vim-box","last_synced_at":"2025-10-15T04:59:35.436Z","repository":{"id":280397282,"uuid":"53032707","full_name":"chawuciren/vim-box","owner":"chawuciren","description":"A vim one-click installation kits for PHP, with the least amount of steps to configure a full vim working environment.","archived":false,"fork":false,"pushed_at":"2020-02-20T09:20:51.000Z","size":963,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T05:32:06.239Z","etag":null,"topics":["css","html","javascript","php","vim","vue"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chawuciren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-03T08:07:31.000Z","updated_at":"2023-03-25T01:05:57.000Z","dependencies_parsed_at":"2025-03-03T07:42:20.118Z","dependency_job_id":null,"html_url":"https://github.com/chawuciren/vim-box","commit_stats":null,"previous_names":["chawuciren/vim-box"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chawuciren/vim-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chawuciren%2Fvim-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chawuciren%2Fvim-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chawuciren%2Fvim-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chawuciren%2Fvim-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chawuciren","download_url":"https://codeload.github.com/chawuciren/vim-box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chawuciren%2Fvim-box/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279051302,"owners_count":26093703,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["css","html","javascript","php","vim","vue"],"created_at":"2025-03-26T00:48:50.813Z","updated_at":"2025-10-15T04:59:35.404Z","avatar_url":"https://github.com/chawuciren.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n![vim box logo](https://raw.githubusercontent.com/chawuciren/vim-box/master/doc/images/logo.png)\r\n\r\n\u003cbr\u003e\r\n\r\nVimBox\r\n===\r\n\r\n一个定位于 PHP 开发的轻量 Vim 配置包，只包含开发中必要的部分插件，并定义开发中高频使用的一些操作的快捷键。\r\n\r\n安装方便开箱即用。适合用于快速部署服务器等环境所需的 Vim 或刚接触 Vim 想要快速上手的朋友尝试。\r\n\r\n\u003cbr\u003e\r\n\r\n依赖\r\n---\r\n\r\n*安装前请先确认你的环境中已经安装了下面列表中所需的依赖*\r\n\r\n1. Vim7.4\r\n2. PHP7.1\r\n3. Node.js\r\n4. ack\r\n5. js-beautify\r\n\r\n\u003cbr\u003e\r\n\r\n安装\r\n---\r\n\r\n1. 进入用户的 home 目录，执行下面命令：\r\n\r\n```bash\r\n\r\n$ cd ~\r\n\r\n$ rm ~/.vim -rf\r\n\r\n$ mkdir ~/.vim\r\n\r\n$ cd ~/.vim\r\n\r\n$ git clone https://github.com/chawuciren/vim-box.git ./\r\n\r\n$ rm ~/.vimrc\r\n\r\n$ ln -s ~/.vim/.vimrc ~/.vimrc\r\n\r\n$ git submodule init\r\n\r\n$ git submodule update\r\n\r\n```\r\n\r\n2. 完成上述步骤后，打开 Vim：\r\n\r\n```bash\r\n$ vim\r\n```\r\n\r\n3. 使用 Vundle 安装所有插件，在 Vim 中执行下面命令：\r\n\r\n```bash\r\n:VundleClean\r\n\r\n:VundleInstall\r\n```\r\n\r\n\u003cbr\u003e\u003cbr\u003e\r\n\r\n文档\r\n---\r\n\r\n*快捷键*:\r\n\r\n| 快捷键| 说明 |\r\n| --- | --- |\r\n| Ctrl+j j | 将当前行移动到下一行 |\r\n| Ctrl+j k | 将当前行移动到上一行 |\r\n| Ctrl+j y | 复制当前行，并在后面一行粘贴 |\r\n| Ctrl+j d | 删除当前行 |\r\n| Ctrl+j c; | 在行尾添加 `;` 符号并换行 |\r\n| Ctrl+j c{ | 在行尾添加 `{` 符号并换行 |\r\n| Ctrl+j l | 直接换行 |\r\n| Ctrl+j f | 格式化当前代码 (支持 *.js, *.html, *.css, *.php) |\r\n| Ctrl+m y | 打开/关闭 `NERDTree` 插件 |\r\n| Ctrl+m u | 打开/关闭 `TagBar` 插件|\r\n| Ctrl+m n | 切换到 `buffer 列表` 中的下一个 `buffer` (顶部标签栏的标签切换) |\r\n| Ctrl+m b | 切换到 `buffer 列表` 中的上一个 `buffer` (顶部标签栏的标签切换) |\r\n| Ctrl+m s | 清空当前项目目录下的 `.swp` and `.swo` 文件 |\r\n| Ctrl+n | 重复执行上一步的快捷键 |\r\n\r\n\u003cbr\u003e\r\n\r\n*命令*：\r\n\r\n| 命令 | 说明 |\r\n| --- | --- |\r\n| :Bdo | 关闭除当前 `buffer` 外的所有 `buffer` |\r\n| :Bdc | 关闭当前 `buffer` |\r\n| :Bp | 切换到上一个 `buffer` |\r\n| :Bp | 切换到下一个 `buffer` |\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchawuciren%2Fvim-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchawuciren%2Fvim-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchawuciren%2Fvim-box/lists"}