{"id":24983261,"url":"https://github.com/m8524769/baidu.vim","last_synced_at":"2026-05-16T11:32:24.029Z","repository":{"id":97838311,"uuid":"77439514","full_name":"m8524769/Baidu.vim","owner":"m8524769","description":"Vim即时划词搜索","archived":false,"fork":false,"pushed_at":"2018-02-02T12:19:10.000Z","size":738,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-05T21:54:08.517Z","etag":null,"topics":["vim"],"latest_commit_sha":null,"homepage":"https://m8524769.github.io/Baidu.vim/","language":"Python","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/m8524769.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,"zenodo":null}},"created_at":"2016-12-27T08:35:00.000Z","updated_at":"2017-06-25T05:46:45.000Z","dependencies_parsed_at":"2023-03-13T16:08:41.021Z","dependency_job_id":null,"html_url":"https://github.com/m8524769/Baidu.vim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m8524769/Baidu.vim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m8524769%2FBaidu.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m8524769%2FBaidu.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m8524769%2FBaidu.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m8524769%2FBaidu.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m8524769","download_url":"https://codeload.github.com/m8524769/Baidu.vim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m8524769%2FBaidu.vim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["vim"],"created_at":"2025-02-04T09:13:35.758Z","updated_at":"2026-05-16T11:32:24.006Z","avatar_url":"https://github.com/m8524769.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baidu.vim\n\n![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)\n![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)\n\n### 简单实现Vim划词搜索功能\n* 支持快速搜索光标下词条以及`VISUAL`模式下的选词搜索\n* 支持`Baidu`及`BaiduAll`命令进行搜索\n* 要求 Vim 版本支持Python2/3+特性\n* 依赖 python-beautifulsoup4 库\n* 仅限百度百科已有的词条\n\n![Example](Example.gif)\n\n### 安装\n- 通过vim-plug(推荐)\n```VIML\nPlug 'm8524769/baidu.vim'\n:PlugInstall\n```\n\n- 通过Vundle.vim\n```VIML\nPlugin 'm8524769/baidu.vim'\n:PluginInstall\n```\n\n### 安装 python-beautifulsoup4\n```shell\npip install bs4\n```\n\n- Arch 用户可直接通过 pacman 安装\n```shell\npacman -S python-beautifulsoup4\n```\n\n### 默认快捷键映射\n```VIML\n\" 命令行显示搜索结果\nnmap \u003csilent\u003e \u003cLeader\u003eb \u003cPlug\u003eBaiduSearch\nvmap \u003csilent\u003e \u003cLeader\u003eb \u003cPlug\u003eBaiduVSearch\n\" 新窗口显示搜索结果\nnmap \u003csilent\u003e \u003cLeader\u003ew \u003cPlug\u003eWin_BaiduSearch\nvmap \u003csilent\u003e \u003cLeader\u003ew \u003cPlug\u003eWin_BaiduVSearch\n\" `q` 或 `Enter` 退出搜索窗口\n\" `m` 显示其他义项\n```\n\n### 默认Python版本\n```VIML\nlet g:py_version = 3\n```\n\n### 默认缓存路径\n```VIML\nlet g:baidu_cache_path = '$VIM/vimfiles/bundle/Baidu.vim/cache'\n```\n***\n\n#### Update_1 Date: 2016/12/30 周五 13:35\n- 优化异常处理\n- 更改`:BaiduW`命令为`:BaiduAll`\n- 可在 Airline  Statusline 中显示关键词\n- 新增`m`可显示其他义项\n\n#### Update_2 Date: 2017/1/2 周一 8:54\n- 优化显示其他义项的性能\n- 新增缓存机制\n  * 保存历史命令行搜索结果以提高性能\n  * 断网仍可查看历史搜索结果\n- 用户可自定义缓存路径\n  * 只能在Vim根目录下\n\n#### Update_3 Date: 2017/1/28 周六 0:36\n- 可识别以下划线，逗号，分号或空格分隔的多个英文单词\n    * 例如 'A_B, C; D E' 的关键词会默认以窗口模式输出各个结果\n    * 'A', 'B', 'C'均可写入缓存以便下次读取\n\n#### Update_4 Date: 2017/3/1 周三 21:58\n- 新增多词窗口内关键词高亮\n- 解决与其他插件的冲突问题\n\n#### Update_5 Date: 2017/6/4 周日 23:53\n- Python 版本改为用户自定义，默认 Python3\n- 去除 lxml 库的依赖，改为自带的 html.parser 来解析网页\n- 修复大部分 Python2 与 Python3+ 的兼容问题\n\n# *Happy Viming !!*\n\n#### 参考项目: [Dict.vim](https://github.com/iamcco/dict.vim)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm8524769%2Fbaidu.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm8524769%2Fbaidu.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm8524769%2Fbaidu.vim/lists"}