{"id":17992025,"url":"https://github.com/coin8086/vimrc","last_synced_at":"2025-03-26T00:31:10.934Z","repository":{"id":92804942,"uuid":"57266156","full_name":"coin8086/vimrc","owner":"coin8086","description":"Simple VIM settings in a single .vimrc file.","archived":false,"fork":false,"pushed_at":"2019-06-11T05:10:15.000Z","size":10,"stargazers_count":24,"open_issues_count":0,"forks_count":7,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-20T23:02:25.341Z","etag":null,"topics":["vim","vim-settings","vimrc"],"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/coin8086.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-04-28T02:59:58.000Z","updated_at":"2023-12-18T07:57:47.000Z","dependencies_parsed_at":"2023-04-05T04:35:51.823Z","dependency_job_id":null,"html_url":"https://github.com/coin8086/vimrc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coin8086%2Fvimrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coin8086%2Fvimrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coin8086%2Fvimrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coin8086%2Fvimrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coin8086","download_url":"https://codeload.github.com/coin8086/vimrc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245566088,"owners_count":20636390,"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":["vim","vim-settings","vimrc"],"created_at":"2024-10-29T19:26:42.241Z","updated_at":"2025-03-26T00:31:10.927Z","avatar_url":"https://github.com/coin8086.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vimrc\n不用任何额外插件，把VIM配置成一个IDE！这个配置我已经用了好多年，希望对你有用。\n\n## 安装\n* 把vimrc文件拷贝你的home目录下，改名为.vimrc\n* 在.bashrc中加入一行：\n  stty -ixon\n  这是为了在VIM中可以按ctrl＋s进入shell，后详\n  \n## 功能\n主要功能有：\n* 显示行号和底部状态栏\n* 多文档编辑、切换\n* 在指定目录中查找关键字\n* 一键进入／退出shell\n* 集成Git命令：grep，diff，blame和log\n* 支持Pathogen VIM插件系统\n* ……\n\n具体如下：\n* 使用2个空格替换一个tab\n* 缩进2个空格\n* 显示行号\n* 自动缩进\n* 自动把工作目录切换到当前打开文件所在的目录\n* 高亮显示搜索关键字\n* cursor所在行加下划线显示\n* 底部状态行显示当前文件路径、行号、列号等信息\n* 保存文件时自动删除行尾空格\n* 启用语法高亮\n* 根据文件类型自动设定缩进大小\n\n它还定义了一些快捷键：\n* ctrl+s进入shell（需要在.bashrc中加入stty -ixon），从shell退回vim按ctrl+d\n* ctrl+j和ctrl+k可以在cursor不移动的情况下向下或向上滚动屏幕\n* ctrl+l列出当前打开的文件，然后你只需输入数字序号就可以切换到对应文件\n* ctrl+n和ctrl+p直接切换到打开文件列表里的下一个或者上一个文件\n* ctrl+o切换回刚才的文件\n* F2在工作目录(根据前面的设定会自动切换到当前打开文件所在的目录)下搜索cursor所在的word——这个命令不会立即执行，需要你回车确认，因此你可以在执行前修改命令参数，比如调整要搜索的关键字或者排除一些不要搜索的目录\n* F3打开搜索结果小窗户（如果还没有打开或者被关闭了的话）\n* ＋／－增加或者减小搜索结果窗的大小\n* F4关闭搜索结果窗\n* F5保存当前打开文件列表到~/.vim_recent_files（需要回车确认），这样下次就可以使用 vi -S ~/.vim_recent_files 命令打开这些文件\n* F6 Git grep当前word，即：在当前的Git Repo里查找，不会查找非Git目录，如项目的日志和临时目录等\n* F7 Git diff当前文件\n* F8 Git blame当前文件\n* F9 Git log当前文件\n\n这个配置文件不到100行，但是基本的功能都有了，我已经用了很多年。它没有配置Tag、没有过多功能炫目的子窗口，但依我的经验，这已足够——我主要用它做Web开发以及服务器运维的工作。另外，它还包含大量注释，供你根据自己的需求进一步定制。\n\n如果你需要更加强大的配置，请参考 https://github.com/coin8086/vim-settings\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoin8086%2Fvimrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoin8086%2Fvimrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoin8086%2Fvimrc/lists"}