{"id":13845018,"url":"https://github.com/tracyone/neomake-multiprocess","last_synced_at":"2026-04-08T02:03:56.413Z","repository":{"id":70058492,"uuid":"81737379","full_name":"tracyone/neomake-multiprocess","owner":"tracyone","description":"A vim plugin for running multiple process asynchronously base on neomake.","archived":false,"fork":false,"pushed_at":"2024-04-21T04:21:34.000Z","size":36,"stargazers_count":39,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-05T17:43:31.720Z","etag":null,"topics":["asynchronously","multiprocessing","neomake","neovim","vim","vim-plugins","vim8"],"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/tracyone.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}},"created_at":"2017-02-12T15:51:31.000Z","updated_at":"2024-04-25T08:27:21.000Z","dependencies_parsed_at":"2024-04-21T05:52:05.140Z","dependency_job_id":null,"html_url":"https://github.com/tracyone/neomake-multiprocess","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tracyone%2Fneomake-multiprocess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tracyone%2Fneomake-multiprocess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tracyone%2Fneomake-multiprocess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tracyone%2Fneomake-multiprocess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tracyone","download_url":"https://codeload.github.com/tracyone/neomake-multiprocess/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225772849,"owners_count":17521901,"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":["asynchronously","multiprocessing","neomake","neovim","vim","vim-plugins","vim8"],"created_at":"2024-08-04T17:03:07.741Z","updated_at":"2026-04-08T02:03:56.394Z","avatar_url":"https://github.com/tracyone.png","language":"Vim Script","funding_links":[],"categories":["Vim script (13)","Vim Script","Vim script"],"sub_categories":[],"readme":"# neomake-multiprocess [![Build Status](https://travis-ci.org/tracyone/neomake-multiprocess.svg?branch=master)](https://travis-ci.org/tracyone/neomake-multiprocess)\n\nA vim plugin for running multiple process asynchronously base on [neomake](https://github.com/neomake/neomake).\n\n\n\u003c!-- vim-markdown-toc GFM --\u003e\n\n* [Feature](#feature)\n* [Screenshot](#screenshot)\n* [Installation](#installation)\n* [Usage](#usage)\n    * [Functions](#functions)\n    * [Keymappings](#keymappings)\n    * [Options](#options)\n    * [Show running status in statusline](#show-running-status-in-statusline)\n* [Example](#example)\n* [Buy me a coffee](#buy-me-a-coffee)\n\n\u003c!-- vim-markdown-toc --\u003e\n\n# Feature\n\n1. Run multiple process asynchronously and output to quickfix window.\n2. Global search asynchronously, support [ag](https://github.com/ggreer/the_silver_searcher), [rg](https://github.com/BurntSushi/ripgrep), grep and git grep, and output to quickfix window with `errorformat` option seted properly.\n\n# Screenshot\n\n[![asciicast](https://asciinema.org/a/250355.svg)](https://asciinema.org/a/250355)\n\n# Installation\n\nUse [vim-plug](https://github.com/junegunn/vim-plug):\n\n```vim\nPlug 'neomake/neomake'\nPlug 'tracyone/neomake-multiprocess'\n```\n\n# Usage\n\n\n```vim\n:h neomakemp.txt\n```\n\n## Functions\n\n```vim\nneomakemp#run_command(command [, callback] [,arglist] [, flag])\n```\n\nRun `command` asynchronously:\n\n- `callback` is a `Funcref` variable which will be called after `command` exit.\n- `arglist` is a `list` variable which will be passed to `callback`\n- `flag` specify whether open quickfix window after command exited.\n\nGlobal search charactor containing a match to the given PATTERN:\n\n```vim\nneomakemp#global_search(pattern [, flag])\n```\n\n`flag` is bit base variable:\n\n- 0x01--\u003esearch in opened buffer\n- 0x02--\u003esearch original string\n\n\n## Keymappings\n\nShortcut   | mode  | Description\n--------   | ----- | -----------\n`\u003cLeader\u003evv` | visual,normal| global search selected word or under current curosr\n`\u003cLeader\u003evb` | visual,normal| searching through all existing buffers\n`\u003cLeader\u003evg` | visual,normal| searching in current file\n`\u003cLeader\u003evr` | normal| run command from user input\n`\u003cLeader\u003evs` | normal| global search from user input\n\nyou can remap it:\n\n```vim\n\"search words on current cursor.\nnmap \u003cyourkey\u003e \u003cPlug\u003e(neomakemp_global_search) \n\"run commands from user input\nnmap \u003cyourkey\u003e \u003cPlug\u003e(neomakemp_run_command) \n\"search words from user input(regular expression)\nnmap \u003cyourkey\u003e \u003cPlug\u003e(neomakemp_global_search2) \n\"search word on current cursor in exist buffers\nnmap \u003cyourkey\u003e \u003cPlug\u003e(neomakemp_global_search_buf)\n\"search word in current file\nnmap \u003cyourkey\u003e \u003cPlug\u003e(neomakemp_global_search_cur_file)\n```\n\n## Options\n\nName                         | Description\n----                         | -----------\ng:neomakemp_grep_command     | `rg`, `ag` , `grep` or `git`\ng:neomakemp_exclude_files    | list variable,specify the ignore file\ng:neomakemp_exclude_dirs     | list variable,specify the ignore directory\n\n\nConfig example:\n\n```vim\n\"autodetect the existence of commands and select the faster one(rg \u003e ag \u003e grep)\nlet g:neomakemp_grep_command = \"ag\"\n\"following is default value\nlet g:neomakemp_exclude_files=['*.jpg', '*.png', '*.min.js', '*.swp', '*.pyc','*.out','*.o']\nlet g:neomakemp_exclude_dirs=[ '.git', 'bin', 'log', 'build', 'node_modules', '.bundle', '.tmp','.svn' ]\n\n```\n\nQuickfix window will be opened under following condition:\n\n1. Global search\n2. Some error happened\n3. `flag` is equal to 1\n\n## Show running status in statusline\n\n**Display running status of commands in [vim-airline](https://github.com/vim-airline/vim-airline):**\n\n```vim\nlet g:airline_section_error = airline#section#create_right(['%{neomakemp#run_status()}'])\n```\n\nDisplay running status in vim's buildin statusline:\n\n```vim\nlet statusline.=neomakemp#run_status()\n```\n\n# Example\n\nFollowing example showing how to generate cscope file asynchronously.\n\n```vim\nfunction! s:AddCscopeOut(read_project,...)\n    if a:read_project == 1\n        if empty(glob('.project'))\n            exec 'silent! cs add cscope.out'\n        else\n            for s:line in readfile('.project', '')\n                exec 'silent! cs add '.s:line.'/cscope.out'\n            endfor\n        endif\n    else\n        if a:0 == 1\n            exec 'cs add '.a:1.'/cscope.out'\n        else\n            exec 'silent! cs add cscope.out'\n        endif\n    endif\nendfunction\nlet l:gen_cscope_files='find ' .a:dir. ' -name \"*.[chsS]\" \u003e '  . l:cscopefiles\ncall neomakemp#RunCommand(l:gen_cscope_files.'\u0026\u0026cscope -Rbkq -i '.l:cscopefiles, function('\u003cSID\u003eAddCscopeOut'),[0,a:dir])\n```\n\n# Buy me a coffee\n\n![donation](https://cloud.githubusercontent.com/assets/4246425/24827592/553bc732-1c7f-11e7-8207-284cccbc2e5c.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftracyone%2Fneomake-multiprocess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftracyone%2Fneomake-multiprocess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftracyone%2Fneomake-multiprocess/lists"}