{"id":24784134,"url":"https://github.com/mazezen/vimrc","last_synced_at":"2025-03-24T07:27:50.498Z","repository":{"id":256037368,"uuid":"841479098","full_name":"mazezen/vimrc","owner":"mazezen","description":"mac vimrc","archived":false,"fork":false,"pushed_at":"2024-09-08T15:45:05.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T12:48:06.435Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mazezen.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":"2024-08-12T13:43:21.000Z","updated_at":"2024-09-08T15:45:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"c867b569-b181-4aa1-b1b8-7a1e194fa308","html_url":"https://github.com/mazezen/vimrc","commit_stats":null,"previous_names":["jeffcail/vimrc","mazezen/vimrc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazezen%2Fvimrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazezen%2Fvimrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazezen%2Fvimrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazezen%2Fvimrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mazezen","download_url":"https://codeload.github.com/mazezen/vimrc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245226511,"owners_count":20580728,"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":[],"created_at":"2025-01-29T12:46:24.495Z","updated_at":"2025-03-24T07:27:50.466Z","avatar_url":"https://github.com/mazezen.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mac vimrc配置\n\n```shell\n\nset tabstop=4                \" 设置tab键的宽度\nset ruler                    \" 在编辑过程中，在右下角显示光标位置的状态行\nsyntax enable                \" 打开语法高亮\nset autoindent               \" 自动对齐\nset laststatus=2             \" 开启状态栏信息\nset mouse=a                  \" 启用鼠标\nset number                   \" 在每一行最前面显示行号\nset shiftwidth=4             \" 自动缩进4空格\nset showmatch                \" 高亮显示对应的括号()\nset cursorline               \" 突出显示当前行\nset smartindent              \" 开启新行时使用智能自动缩进\nset shiftwidth=4             \" 换行时行间交错使用4个空格\nset foldmethod=syntax        \" 选择代码折叠类型\nset backspace=2              \" 设置退格键可用\nset incsearch                \" 输入搜索内容时就显示搜索结果\nset autochdir                \" 自动切换当前目录为当前文件所在的目录\nset foldenable                     \" 开始折叠\nnnoremap \u003cspace\u003e @=((foldclosed(line('.')) \u003c 0) ? 'zc' : 'zo')\u003cCR\u003e \" 用空格键来开关折叠\nnnoremap \u003cspace\u003eb :buffers\u003ccr\u003e:b\u003cspace\u003e \" 打开多文件时，列出缓冲区，执行命令快速切换文件\nnnoremap \u003cspace\u003ee :b#\u003ccr\u003e    \"上下缓冲区文件切换\nnnoremap \u003cspace\u003ew :w\u003ccr\u003e     \" 保存\nnnoremap \u003cspace\u003eq :qa\u003ccr\u003e    \" 退出\n\n\"======================================设置编码====================================\"\n\" 设置换行编码\nset fileformats=unix,dos,mac\n\" 设置Vim 内部使用的字符编码方式\nset encoding=utf-8\n\" 设置文件编码\nif has(\"win32\")\n    set fileencoding=chinese\nelse\n    set fileencoding=utf-8\nendif\n\n\" 解决consle输出乱码\nlanguage messages zh_CN.utf-8\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazezen%2Fvimrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazezen%2Fvimrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazezen%2Fvimrc/lists"}