{"id":19560691,"url":"https://github.com/zoubin/vim-git","last_synced_at":"2026-01-28T19:02:09.107Z","repository":{"id":25199445,"uuid":"28623184","full_name":"zoubin/vim-git","owner":"zoubin","description":"Tricks for using git in vim","archived":false,"fork":false,"pushed_at":"2014-12-31T05:53:55.000Z","size":172,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T23:54:31.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"VimL","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/zoubin.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}},"created_at":"2014-12-30T08:19:32.000Z","updated_at":"2018-10-18T13:54:43.000Z","dependencies_parsed_at":"2022-08-23T19:50:42.759Z","dependency_job_id":null,"html_url":"https://github.com/zoubin/vim-git","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zoubin/vim-git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fvim-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fvim-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fvim-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fvim-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoubin","download_url":"https://codeload.github.com/zoubin/vim-git/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fvim-git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28849363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-11T05:08:28.750Z","updated_at":"2026-01-28T19:02:09.091Z","avatar_url":"https://github.com/zoubin.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"vim-git\n=======\n\nTricks for using git in vim.\n\n## Git Blame\nMapping should be completed in vimrc, like:\n\n```vim\nnoremap \u003cunique\u003e \u003cleader\u003eg :call git#BlameRange()\u003cCR\u003e\n\n```\n\nSuppose `\u003cleader\u003e` is `\\` (the default), then,\n* In normal mode: type `\\g`, and you are blaming the current line\n* In visual mode: type  `\\g`, and you are blaming the visual block\n\n## Git Grep\nMapping should be completed in vimrc, like:\n\n```vim\nnnoremap \u003cunique\u003e K :call git#GrepCursorWord()\u003cCR\u003e\nvnoremap \u003cunique\u003e K y:call git#GrepText(getreg('\"'))\u003cCR\u003e\nnnoremap \u003cunique\u003e \u003cC-T\u003e ^\u003cC-W\u003eF\n\n```\n\nThen,\n* In normal mode: type `K`, and you are git greping the word under the cursor\n* In visual mode: type  `K`, and you are git greping the visual text\n\nIn either mode, results are shown in a split window.\nMove to any line, and type `CTRL-T`, and a new split window will be opened containing the regarding file. Also, the cursor will be positioned at the regarding line.\n\n## Usage\nAfter installation, finish the mapping in vimrc, like:\n\n```vim\n\" for git blame\nnoremap \u003cunique\u003e \u003cleader\u003eg :call git#BlameRange()\u003cCR\u003e\n\n\" In visual mode, git grep the selection text\nvnoremap \u003cunique\u003e K y:call git#GrepText(getreg('\"'))\u003cCR\u003e\n\" In normal mode, git grep the word under the cursor\nnnoremap \u003cunique\u003e K :call git#GrepCursorWord()\u003cCR\u003e\n\" Open in a new window. :h CTRL-W_F for more information\nnnoremap \u003cunique\u003e \u003cC-T\u003e ^\u003cC-W\u003eF\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fvim-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoubin%2Fvim-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fvim-git/lists"}