{"id":13898253,"url":"https://github.com/obcat/vim-hitspop","last_synced_at":"2025-04-22T17:24:47.760Z","repository":{"id":40696224,"uuid":"305812661","full_name":"obcat/vim-hitspop","owner":"obcat","description":"💬  Popup the number of search results","archived":false,"fork":false,"pushed_at":"2022-07-19T03:29:36.000Z","size":43,"stargazers_count":40,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T17:24:41.940Z","etag":null,"topics":["popup","search","vim"],"latest_commit_sha":null,"homepage":"https://zenn.dev/obcat/articles/4ef6822de53b643bbd01","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/obcat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-20T19:27:04.000Z","updated_at":"2024-08-15T06:32:22.000Z","dependencies_parsed_at":"2022-09-07T20:02:06.619Z","dependency_job_id":null,"html_url":"https://github.com/obcat/vim-hitspop","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/obcat%2Fvim-hitspop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obcat%2Fvim-hitspop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obcat%2Fvim-hitspop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obcat%2Fvim-hitspop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obcat","download_url":"https://codeload.github.com/obcat/vim-hitspop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250285980,"owners_count":21405342,"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":["popup","search","vim"],"created_at":"2024-08-06T18:04:11.400Z","updated_at":"2025-04-22T17:24:47.741Z","avatar_url":"https://github.com/obcat.png","language":"Vim script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"# vim-hitspop\n\nPopup the number of search results.\n\n![hitspop eyecatch][1]\n\n\n## Installation\n\nRequires Vim 8.2.0896 or later. Neovim is not supported.\n\nIf you use [vim-plug][2], then add the following line to your vimrc:\n\n```vim\nPlug 'obcat/vim-hitspop'\n```\n\nYou can use any other plugin manager.\n\n\n## Usage\n\nThe `hlsearch` option must be turned on for this plugin to work:\n\n```vim\nset hlsearch\n```\n\nThis is all you need to set up. If you run a search command like `/foo`, a popup\nwill appear and show you the number of search results like `foo  3 of 7`.\n\n### Tips\n\nWhen you stop highlighting, the popup will be closed automatically.\n\nHighlighting can be stopped with the `nohlsearch` command. To run this command\nquickly, you may want to set up the following map:\n\n\n```vim\nnnoremap \u003csilent\u003e \u003cESC\u003e\u003cESC\u003e :\u003cC-u\u003enohlsearch\u003cCR\u003e\n```\n\nYou can also use the nohlsearch feature of [is.vim][3] plugin to stop\nhighlighting automatically. Please see the link for details.\n\nTo be precise, popup will be closed when one of the following occurs after\nstopping highlighting:\n\n* The cursor was moved.\n* The time specified with `updatetime` option has elapsed.\n\nThe default value of `updatetime` is `4000`, i.e. 4 seconds. If you want to\nclose the popup as soon as possible after stopping highlighting, reduce the\nvalue of this option. I suggest around 100ms:\n\n```vim\nset updatetime=100\n```\n\nNote that `updatetime` also controls the delay before Vim writes its swap file\n(see `:h updatetime`).\n\n\n## Customization\n\nYou can customize some features.\n\n\n### Position\n\nBy default, popup is displayed at top right corner of current window. If you\nwant to display the popup, for example, at bottom left corner of current window,\nuse this:\n\n```vim\nlet g:hitspop_line   = 'winbot'\nlet g:hitspop_column = 'winright'\n```\n\n![popup at botright][4]\n\nYou can also specify other positions. Please see help file for more information.\n\n\n### Highlight\n\nThe popup color can be changed setting the following highlight groups:\n\n* `hitspopNormal` (default: links to `Pmenu`)\n* `hitspopErrorMsg` (default: links to `Pmenu`)\n\nExample:\n\n![errormsg highlighting][5]\n\n```vim\nhighlight link hitspopErrorMsg ErrorMsg\n```\n\n📝 I use [iceberg.vim][6] for color scheme.\n\n\n## License\n\nMIT License.\n\n\n\u003c!-- Reference links --\u003e\n[1]: https://user-images.githubusercontent.com/64692680/102915667-81b06800-44c5-11eb-8b53-e37eacc4e67b.gif\n[2]: https://github.com/junegunn/vim-plug\n[3]: https://github.com/haya14busa/is.vim\n[4]: https://user-images.githubusercontent.com/64692680/102915781-b3293380-44c5-11eb-9068-84fe2defe5fd.png\n[5]: https://user-images.githubusercontent.com/64692680/102916237-90e3e580-44c6-11eb-803d-6daa577bed98.png\n[6]: https://github.com/cocopon/iceberg.vim\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobcat%2Fvim-hitspop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobcat%2Fvim-hitspop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobcat%2Fvim-hitspop/lists"}