{"id":13661800,"url":"https://github.com/romainl/vim-cool","last_synced_at":"2025-05-15T15:06:24.185Z","repository":{"id":51251975,"uuid":"56104982","full_name":"romainl/vim-cool","owner":"romainl","description":"A very simple plugin that makes hlsearch more useful.","archived":false,"fork":false,"pushed_at":"2025-02-19T20:34:57.000Z","size":52,"stargazers_count":547,"open_issues_count":6,"forks_count":25,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-08T08:11:11.162Z","etag":null,"topics":["highlighting","search","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","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/romainl.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":"2016-04-12T23:27:47.000Z","updated_at":"2025-04-03T00:39:20.000Z","dependencies_parsed_at":"2024-01-14T15:42:06.469Z","dependency_job_id":"ff000f2b-5c8a-4f92-b18c-775f2aea9b1e","html_url":"https://github.com/romainl/vim-cool","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/romainl%2Fvim-cool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romainl%2Fvim-cool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romainl%2Fvim-cool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romainl%2Fvim-cool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romainl","download_url":"https://codeload.github.com/romainl/vim-cool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364270,"owners_count":22058878,"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":["highlighting","search","vim","vim-plugin"],"created_at":"2024-08-02T05:01:41.856Z","updated_at":"2025-05-15T15:06:24.168Z","avatar_url":"https://github.com/romainl.png","language":"Vim Script","readme":"# vim-cool\n\nVim-cool disables search highlighting when you are done searching and re-enables it when you search again. That's it. No more `:noh\u003cCR\u003e`, no more `/sytdstdrsid\u003cCR\u003e`, and no more dodgy `\u003cC-l\u003e` mappings.\n\nVim-cool is cool.\n\nVim-cool is *experimental*.\n\n![cool](https://user-images.githubusercontent.com/344335/226825463-4ff5e352-ac2e-4f4d-94c7-a8109da7b6db.gif)\n\n## Requirements\n\nVim-cool is intended to be used with Vim, **and only Vim**, 7.4.2008 or later. It may or may not work in other editors but they are not and will not be officially supported.\n\n## Installation\n\nFollow your favorite plugin/runtimepath manager's instructions.\n\nIf you choose manual installation, just put `plugin/cool.vim` where it belongs:\n\n    $HOME/.vim/plugin/cool.vim        on Unix-like systems\n    $HOME\\vimfiles\\plugin\\cool.vim    on Windows\n\nIn Vim 8.0 and above, see `:help package`.\n\n## Setup\n\nThe whole assumption behind Vim-cool is that the user enabled search highlighting but they don't want the highlighting to linger on when they are done searching. This implies that the user has the following line in their `vimrc`:\n\n    set hlsearch\n\nThat's it. Nothing else to do.\n\n## Experimental features\n\n* Show number of matches in the command-line:\n\n      let g:cool_total_matches = 1\n\n  ![demo](https://user-images.githubusercontent.com/344335/226825418-12931cf3-5f89-4375-89be-c98a57e177df.png)\n\n* Do something when we are doing `nnnNNnn`, do something else or do nothing when we are not:\n\n      set statusline+=%{get(g:,'cool_is_searching',0)?'Yep':''}\n\n## Background\n\nI wrote the first iteration of vim-cool in about twenty minutes, mostly to test a few ideas I had after a short discussion about `'hlsearch'` and `:nohlsearch` on #vim.\n\nBecause it relied almost exclusively on mappings, that first iteration was way too brittle to be of any use and actually messed with a bunch of my own mappings.\n\nThen came [@purpleP](https://github.com/purpleP) and [the game-changing approach](https://github.com/romainl/vim-cool/issues/9) he put together with the help of [@chrisbra](https://github.com/chrisbra), [@justinmk](https://github.com/justinmk), [@jamessan](https://github.com/jamessan), and [@ZyX-I](https://github.com/ZyX-I).\n\nThe current version, essentially a weaponized version of @purpleP's code, doesn't rely on mappings anymore and thus should be devoid of nasty side-effects.\n\nMany thanks to [@bounceme](https://github.com/bounceme) for his help.\n\n## What they say about vim-cool\n\n- **puremourning**, in #vim:\n\n  \u003e vim-cool is by far my favourite plugin\n  \u003e\n  \u003e it's just so... cool.\n","funding_links":[],"categories":["Vim script","Vim Script"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromainl%2Fvim-cool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromainl%2Fvim-cool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromainl%2Fvim-cool/lists"}