{"id":19165009,"url":"https://github.com/selfboot/vim_backup","last_synced_at":"2026-03-07T14:02:03.057Z","repository":{"id":7529520,"uuid":"8881080","full_name":"selfboot/vim_backup","owner":"selfboot","description":"vim 配置文件以及插件","archived":false,"fork":false,"pushed_at":"2017-03-29T01:49:42.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-07T05:44:18.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/selfboot.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}},"created_at":"2013-03-19T14:50:04.000Z","updated_at":"2020-03-02T06:19:04.000Z","dependencies_parsed_at":"2022-07-21T14:19:46.139Z","dependency_job_id":null,"html_url":"https://github.com/selfboot/vim_backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/selfboot/vim_backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfboot%2Fvim_backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfboot%2Fvim_backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfboot%2Fvim_backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfboot%2Fvim_backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selfboot","download_url":"https://codeload.github.com/selfboot/vim_backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfboot%2Fvim_backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30216493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T13:35:13.914Z","status":"ssl_error","status_checked_at":"2026-03-07T13:35:13.569Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-09T09:26:03.266Z","updated_at":"2026-03-07T14:02:03.042Z","avatar_url":"https://github.com/selfboot.png","language":"Vim script","readme":"本仓库为 Vim 配置文件，这里使用[vundle](https://github.com/VundleVim/Vundle.vim)来管理插件。\n\n# 初始化vim配置\n\n要想在新的机器使用我这里的配置，只需要下面命令即可：\n  \n```\n$ git clone http://github.com/xuelangZF/vim_backup.git ~/.vim\n$ cd ~/.vim \n$ ln -s `pwd`/.vimrc ~/.vimrc\n$ git submodule init\t\n$ git submodule update\n```\n\n要更新 vundle，只需要进入 `~/.vim/bundle/Vundle.vim/`目录，然后运行\n\n```\n$ git checkout master; git pull\n```\n\n# 插件管理命令\n\n打开vim, 运行下列命令：\n\n* 安装插件: BundleInstall \n* 更新插件: BundleUpdate\n* 清除不再使用的插件:    BundleClean\n* 列出所有插件: BundleList\n* 查找插件: BundleSearch\n\n# 其他问题\n\n## root vim\n\n如果以非root运行vim，那么会从 `/home/\u003cuser\u003e` 读取配置文件。如果以 `sudo vim filename` 来运行vim的话，会从 `/root`读取配置。为了使 root 用户也使用某个用户的 vim 配置，可以使用下面的方式创建软链接。\n\n```\nsudo ln -s /home/\u003cuser\u003e/.vimrc /root/.vimrc\nsudo ln -s /home/\u003cuser\u003e/.vim/ /root/.vim/\n```\n\n注意替换 `\u003cuser\u003e` 为自己的用户。当然也可以不用 sudo 来执行 vim，在最后保存的时候，用下面 vim 命令（配置文件中添加Sw为 `:w !sudo tee % \u003e /dev/null` 的alias）。\n\n```\n:Sw\n```\n\n# 参考  \n\n[vim中的杀手级插件: vundle][1]  \n[分布式 Git - 为项目作贡献][2]\t \n[Git 工具 - 子模块][3]  \n[Git Submodule Tutorial][4]  \n[How do I remove a Git submodule?][5]\n\n[1]:http://zuyunfei.com/2013/04/12/killer-plugin-of-vim-vundle/  \n[2]:http://git-scm.com/book/zh/%E5%88%86%E5%B8%83%E5%BC%8F-Git-%E4%B8%BA%E9%A1%B9%E7%9B%AE%E4%BD%9C%E8%B4%A1%E7%8C%AE  \n[3]:http://git-scm.com/book/zh/Git-%E5%B7%A5%E5%85%B7-%E5%AD%90%E6%A8%A1%E5%9D%97  \n[4]:https://git.wiki.kernel.org/index.php/GitSubmoduleTutorial#Removal\n[5]:http://stackoverflow.com/questions/1260748/how-do-i-remove-a-git-submodule\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfboot%2Fvim_backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselfboot%2Fvim_backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfboot%2Fvim_backup/lists"}