{"id":13898003,"url":"https://github.com/kyoh86/vim-editerm","last_synced_at":"2025-05-07T15:42:36.532Z","repository":{"id":54889144,"uuid":"177291289","full_name":"kyoh86/vim-editerm","owner":"kyoh86","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-09T12:10:01.000Z","size":37,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T11:35:24.314Z","etag":null,"topics":["neovim","neovim-plugin","nvim","nvim-plugin","vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/kyoh86.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":"2019-03-23T13:18:18.000Z","updated_at":"2024-07-01T07:55:11.000Z","dependencies_parsed_at":"2024-02-23T11:57:25.172Z","dependency_job_id":null,"html_url":"https://github.com/kyoh86/vim-editerm","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoh86%2Fvim-editerm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoh86%2Fvim-editerm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoh86%2Fvim-editerm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyoh86%2Fvim-editerm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyoh86","download_url":"https://codeload.github.com/kyoh86/vim-editerm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252907996,"owners_count":21823317,"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":["neovim","neovim-plugin","nvim","nvim-plugin","vim","vim-plugin"],"created_at":"2024-08-06T18:04:00.312Z","updated_at":"2025-05-07T15:42:36.492Z","avatar_url":"https://github.com/kyoh86.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# vim-editerm\n\nA plugin sets `$EDITOR` in `:terminal` to open a file in the working vim instead of a new one.\n\nUsually, calling `git commit`, `vim` and suchlike commands in |:terminal|,  \nnew vim process starts in their.\nBut it makes some unfavorable situation depending on the settings.\n\nThis plugin, *vim-editerm* will set an environment varialble `$EDITOR` and\noverride `vim` command with function that drops files in new buffer in parent\nvim.\n\n## Screenshot\n\n![](https://user-images.githubusercontent.com/5582459/63220140-76a44400-c1bc-11e9-8555-389aafde8a38.gif)\n\n## INSTALLATION\n\nWith vim-plug:\n\n```\nPlug 'kyoh86/vim-editerm'\n```\n\nAnd if you want to override `vim` and create commands `:edit|new|vnew|tabnew` in `:terminal`, put below lines in `.zshrc` or `.bashrc`.\n\n```\nif [[ \"${VIM_EDITERM_SETUP}\" != \"\" ]]; then\n  source \"${VIM_EDITERM_SETUP}\"\nfi\n```\n\n## USAGE\n\nWithout being conscious.\n\nIn `:terminal`, you can `git commit` in buffer in the parent vim.\n\nIf you want to stop editing with the error (i.e. to stop to commit), call `:Cq` or `:CQ`.\n\n## CONFIGURATION\n\n### Behavior to open files\n\nWe can change behavior to open files.\n\n```vim\nlet g:editerm_opener = 'n'  \" :new \u003cfile\u003e (default)\nlet g:editerm_opener = 'e'  \" :edit \u003cfile\u003e\nlet g:editerm_opener = 'v'  \" :vnew \u003cfile\u003e\nlet g:editerm_opener = 't'  \" :tabnew \u003cfile\u003e\n```\n\nOr by `.zshrc` or `.bashrc`\n\n```sh\nexport VIM_EDITERM_OPENER=\"n\"  # :new \u003cfile\u003e\nexport VIM_EDITERM_OPENER=\"e\"  # :edit \u003cfile\u003e\nexport VIM_EDITERM_OPENER=\"v\"  # :vnew \u003cfile\u003e\nexport VIM_EDITERM_OPENER=\"t\"  # :tabnew \u003cfile\u003e\n```\n\n### Definition of the dropping commands\n\n`vim-editerm` will create below commands which drop files to vim.\n\n```shell\n:drop \u003cfiles...\u003e\n:edit \u003cfiles...\u003e\n:new \u003cfiles...\u003e\n:vnew \u003cfiles...\u003e\n:tabnew \u003cfiles...\u003e\n```\n\nIf you want to supress them:\n\n```vim\nlet g:editerm_defdrop = '0'  \" default: '1'\n```\n\nAnd if you want to change prefix of them:\n\n```vim\nlet g:editerm_defdrop_prefix = 'vim_'  \" default: ':'\n```\n\n## Similar projects\n\n- [lambdalisue/edita.vim](https://github.com/lambdalisue/edita.vim)\n  - **no external dependencies**\n\n# LICENSE\n\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg)](http://www.opensource.org/licenses/MIT)\n\nThis software is released under the [MIT License](http://www.opensource.org/licenses/MIT), see LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyoh86%2Fvim-editerm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyoh86%2Fvim-editerm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyoh86%2Fvim-editerm/lists"}