{"id":13479786,"url":"https://github.com/haya14busa/vim-asterisk","last_synced_at":"2025-04-06T14:11:10.386Z","repository":{"id":23855297,"uuid":"27233281","full_name":"haya14busa/vim-asterisk","owner":"haya14busa","description":":snowflake: *-Improved","archived":false,"fork":false,"pushed_at":"2021-03-31T18:27:50.000Z","size":87,"stargazers_count":394,"open_issues_count":16,"forks_count":18,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-30T12:08:35.185Z","etag":null,"topics":["motion","vim"],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=5059","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/haya14busa.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}},"created_at":"2014-11-27T16:27:27.000Z","updated_at":"2025-03-26T23:52:13.000Z","dependencies_parsed_at":"2022-07-27T04:17:25.913Z","dependency_job_id":null,"html_url":"https://github.com/haya14busa/vim-asterisk","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fvim-asterisk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fvim-asterisk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fvim-asterisk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fvim-asterisk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haya14busa","download_url":"https://codeload.github.com/haya14busa/vim-asterisk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247492513,"owners_count":20947544,"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":["motion","vim"],"created_at":"2024-07-31T16:02:22.971Z","updated_at":"2025-04-06T14:11:10.360Z","avatar_url":"https://github.com/haya14busa.png","language":"Vim script","funding_links":[],"categories":["Vim Script"],"sub_categories":[],"readme":"vim-asterisk: * -Improved\n========================\n[![](https://travis-ci.org/haya14busa/vim-asterisk.svg?branch=master)](https://travis-ci.org/haya14busa/vim-asterisk)\n[![](https://ci.appveyor.com/api/projects/status/uurxg9ips6h2cyd3/branch/master?svg=true)](https://ci.appveyor.com/project/haya14busa/vim-asterisk/branch/master)\n[![](https://drone.io/github.com/haya14busa/vim-asterisk/status.png)](https://drone.io/github.com/haya14busa/vim-asterisk/latest)\n[![](https://img.shields.io/github/release/haya14busa/vim-asterisk.svg)](https://github.com/haya14busa/vim-asterisk/releases)\n[![](http://img.shields.io/github/issues/haya14busa/vim-asterisk.svg)](https://github.com/haya14busa/vim-asterisk/issues)\n[![](http://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![](http://img.shields.io/badge/doc-%3Ah%20asterisk.txt-red.svg)](doc/asterisk.txt)\n\nIntroduction\n------------\n\nasterisk.vim provides improved * motions.\n\n### 1. stay star motions (z prefixed mappings)\nz star motions doesn't move your cursor.\n\n![](https://raw.githubusercontent.com/haya14busa/i/master/vim-asterisk/asterisk_z_star.gif)\n\n### 2. visual star motions\nSearch selected text.\n\n![](https://raw.githubusercontent.com/haya14busa/i/master/vim-asterisk/asterisk_visual_star.gif)\n\n### 3. Use smartcase unlike default one\nDefault behavior, which sees ignorecase and not smartcase, is not intuitive.\n\n### 4. Keep cursor position across matches\nIt is handy for refactoring to keep cursor position while iterating over matches.\n\nAdd following line in your vimrc to enable this feature. `let g:asterisk#keeppos = 1` Default: 0\n\n![](https://raw.githubusercontent.com/haya14busa/i/master/vim-asterisk/asterisk_keeppos.gif)\n\n\nInstallation\n------------\n\n[Neobundle](https://github.com/Shougo/neobundle.vim) / [Vundle](https://github.com/gmarik/Vundle.vim) / [vim-plug](https://github.com/junegunn/vim-plug)\n\n```vim\nNeoBundle 'haya14busa/vim-asterisk'\nPlugin 'haya14busa/vim-asterisk'\nPlug 'haya14busa/vim-asterisk'\n```\n\n[pathogen](https://github.com/tpope/vim-pathogen)\n\n```\ngit clone https://github.com/haya14busa/vim-asterisk ~/.vim/bundle/vim-asterisk\n```\n\nUsage\n-----\n\n```vim\nmap *   \u003cPlug\u003e(asterisk-*)\nmap #   \u003cPlug\u003e(asterisk-#)\nmap g*  \u003cPlug\u003e(asterisk-g*)\nmap g#  \u003cPlug\u003e(asterisk-g#)\nmap z*  \u003cPlug\u003e(asterisk-z*)\nmap gz* \u003cPlug\u003e(asterisk-gz*)\nmap z#  \u003cPlug\u003e(asterisk-z#)\nmap gz# \u003cPlug\u003e(asterisk-gz#)\n```\n\nIf you want to set \"z\" (stay) behavior as default\n\n```vim\nmap *  \u003cPlug\u003e(asterisk-z*)\nmap #  \u003cPlug\u003e(asterisk-z#)\nmap g* \u003cPlug\u003e(asterisk-gz*)\nmap g# \u003cPlug\u003e(asterisk-gz#)\n```\n\nTo enable keepCursor feature:\n```vim\nlet g:asterisk#keeppos = 1\n```\n\nSpecial thanks\n--------------\n|vim-asterisk| uses the code from vim-visualstar for visual star feature.\n\n- Author: thinca (https://github.com/thinca)\n- Plugin: https://github.com/thinca/vim-visualstar\n\nAuthor\n------\nhaya14busa (https://github.com/haya14busa)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaya14busa%2Fvim-asterisk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaya14busa%2Fvim-asterisk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaya14busa%2Fvim-asterisk/lists"}