{"id":16227637,"url":"https://github.com/leafoftree/vim-blink","last_synced_at":"2025-08-10T22:49:10.930Z","repository":{"id":98920260,"uuid":"217263313","full_name":"leafOfTree/vim-blink","owner":"leafOfTree","description":"Blink to anywhere in INSERT or NORMAL mode","archived":false,"fork":false,"pushed_at":"2021-05-13T04:06:57.000Z","size":18,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T04:29:54.422Z","etag":null,"topics":["blink","edit","plugin","point","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim script","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/leafOfTree.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}},"created_at":"2019-10-24T09:35:46.000Z","updated_at":"2021-06-13T17:22:12.000Z","dependencies_parsed_at":"2023-04-04T03:02:51.918Z","dependency_job_id":null,"html_url":"https://github.com/leafOfTree/vim-blink","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leafOfTree/vim-blink","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fvim-blink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fvim-blink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fvim-blink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fvim-blink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafOfTree","download_url":"https://codeload.github.com/leafOfTree/vim-blink/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fvim-blink/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269803693,"owners_count":24477649,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blink","edit","plugin","point","vim"],"created_at":"2024-10-10T12:53:23.367Z","updated_at":"2025-08-10T22:49:10.884Z","avatar_url":"https://github.com/leafOfTree.png","language":"Vim script","readme":"# vim-blink\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"screencast\" src=\"https://raw.githubusercontent.com/leafOfTree/leafOfTree.github.io/master/vim_run_screencast.gif\" /\u003e\n\u003c/p\u003e\n\nBlink to anywhere in INSERT or NORMAL mode\n\n## Installation\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ca\u003eHow to install\u003c/a\u003e\u003c/summary\u003e\n\n- [VundleVim][1]\n\n        Plugin 'leafOfTree/vim-blink'\n\n- [vim-pathogen][2]\n\n        cd ~/.vim/bundle\n        git clone https://github.com/leafOfTree/vim-blink --depth 1\n\n- [vim-plug][3]\n\n        Plug 'leafOfTree/vim-blink'\n        :PlugInstall\n\n- Or manually, clone this plugin to `path/to/this_plugin`, and add it to `rtp` in vimrc\n\n        set rtp+=path/to/this_plugin\n\n\u003cbr /\u003e\n\u003c/details\u003e\n\nPlease stay up to date. Feel free to open an issue or a pull request\n\n## Usage\n\nAdd config\n\n```vim\nlet g:blink_point = {\n    \\'javascript':  '(|), {|}, \\[|\\], {\\n\\s*|\\n\\s*}, \u003e|\u003c, ''|'', \"|\"'\n    \\}\n```\n\nOpen a javascript file and then in INSERT or NORMAL mode, press \u003ckbd\u003ec-n\u003c/kbd\u003e or \u003ckbd\u003ec-p\u003c/kbd\u003e\n\n## Configuration\n\n### Blink point\n\nA `pattern` to define where to go. It is a string separated by `,`. The cursor position is marked by `|`\n\n#### `g:blink_point`\n\nFiletype specific `pattern`. The format is `{ key: filetype, value: pattern }`\n\n- Default: `undefined`\n- Example: \n\n    ```vim\n    let g:blink_point = {\n        \\'vue':   ':\\s*|;, ^\u003c|\\(script\\|style\\|template\\)',\n        \\'jsx':   '(|), {|}, \\[|\\], \u003e|\u003c, \"|\", ''|'', \\s|[)}]',\n        \\'text':  '(|.*), [a-c]|[d-g]',\n        \\}\n    ```\n\n#### `g:blink_point_default`\n\nDefault `pattern`\n\n- Default: `'(|), {|}, \\[|\\], {\\n\\s*|\\n\\s*}, \u003e|\u003c, ''|'', \"|\"'`\n- Example: \n\n    ```vim\n    let g:blink_point_default = '(|), {|}, \\[|\\], \".*|\"'\n    ```\n\nFor more details about vim `pattern`, see `:h pattern`\n\n### Mapping\n\n#### `g:blink_mapping_prev`\n\nMapping to blink to previous point\n\n- Default: `\u003cc-p\u003e`\n- Example: \n\n    ```vim\n    let g:blink_mapping_prev = '\u003cc-k\u003e'\n    ```\n\n#### `g:blink_mapping_next`\n\nMapping to blink to next point\n\n- Default: `\u003cc-n\u003e`\n- Example: \n\n    ```vim\n    let g:blink_mapping_next = '\u003cc-j\u003e'\n    ```\n\n### Mode\n\n#### `g:blink_disable_insert`\n\nDisable blink in INSERT mode\n\n- Default: `0`\n- Example: \n\n    ```vim\n    let g:blink_disable_insert = 1\n    ```\n\n#### `g:blink_disable_normal`\n\nDisable blink in NORMAL mode\n\n- Default: `0`\n- Example: \n\n    ```vim\n    let g:blink_disable_normal = 1\n    ```\n\n### Function\n\nThe function used by the mappings is `blink#BlinkToEditPoint(flags, normal)`\n\n```vim\ninoremap\u003csilent\u003e \u003cc-p\u003e \u003cc-r\u003e=blink#BlinkToEditPoint(\"wb\", 0)\u003ccr\u003e\ninoremap\u003csilent\u003e \u003cc-n\u003e \u003cc-r\u003e=blink#BlinkToEditPoint(\"w\", 0)\u003ccr\u003e\n\nnnoremap\u003csilent\u003e \u003cc-p\u003e :call blink#BlinkToEditPoint(\"wb\", 1)\u003ccr\u003e\nnnoremap\u003csilent\u003e \u003cc-n\u003e :call blink#BlinkToEditPoint(\"w\", 1)\u003ccr\u003e\n```\n\n[1]: https://github.com/VundleVim/Vundle.vim\n[2]: https://github.com/tpope/vim-pathogen\n[3]: https://github.com/junegunn/vim-plug\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Fvim-blink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafoftree%2Fvim-blink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Fvim-blink/lists"}