{"id":13596200,"url":"https://github.com/chrisbra/NrrwRgn","last_synced_at":"2025-04-09T16:31:51.300Z","repository":{"id":885469,"uuid":"632851","full_name":"chrisbra/NrrwRgn","owner":"chrisbra","description":"A Narrow Region Plugin for vim (like Emacs Narrow Region)","archived":false,"fork":false,"pushed_at":"2022-02-13T15:20:37.000Z","size":1123,"stargazers_count":681,"open_issues_count":11,"forks_count":25,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-03T06:48:49.200Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.vim.org/scripts/script.php?script_id=3075","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/chrisbra.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":"2010-04-28T06:26:35.000Z","updated_at":"2025-03-04T16:56:40.000Z","dependencies_parsed_at":"2022-07-17T01:16:18.418Z","dependency_job_id":null,"html_url":"https://github.com/chrisbra/NrrwRgn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisbra%2FNrrwRgn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisbra%2FNrrwRgn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisbra%2FNrrwRgn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisbra%2FNrrwRgn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisbra","download_url":"https://codeload.github.com/chrisbra/NrrwRgn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248067790,"owners_count":21042357,"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":[],"created_at":"2024-08-01T16:02:11.890Z","updated_at":"2025-04-09T16:31:46.583Z","avatar_url":"https://github.com/chrisbra.png","language":"Vim script","funding_links":[],"categories":["Vim Script","Vim script","plugins for writing"],"sub_categories":[],"readme":"# NrrwRgn plugin [![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/cb%40256bit.org)\n\n\u003e A Vim plugin for focussing on a selected region\n\nThis plugin is inspired by the [Narrowing feature of Emacs](http://www.emacswiki.org/emacs/Narrowing) and means to focus on a selected region while making the rest inaccessible. You simply select the region, call `:NR` and the selected part will open in a new split window while the rest of the buffer will be protected. Once you are finished, simply write the narrowed window (`:w`) and all the changes will be moved back to the original buffer.\n\nSee also the following screencast, that shows several features available:\n![screencast of the plugin](screencast.gif \"Screencast\")\n\n## Installation\n\nUse the plugin manager of your choice. Or download the [stable][] version of the plugin, edit it with Vim (`vim NrrwRgn-XXX.vmb`) and simply source it (`:so %`). Restart and take a look at the help (`:h NrrwRgn.txt`)\n\n[stable]: http://www.vim.org/scripts/script.php?script_id=3075\n\n## Usage\n\nOnce installed, take a look at the help at `:h NarrowRegion`.\n\nHere is a short overview of the functionality provided by the plugin:\n\n### Ex commands:\n\n    :NR  - Open the selected region in a new narrowed window\n    :NW  - Open the current visual window in a new narrowed window\n    :WR  - (In the narrowed window) write the changes back to the original buffer.\n    :NRV - Open the narrowed window for the region that was last visually selected.\n    :NUD - (In a unified diff) open the selected diff in 2 Narrowed windows\n    :NRP - Mark a region for a Multi narrowed window\n    :NRM - Create a new Multi narrowed window (after :NRP) - experimental!\n    :NRS - Enable Syncing the buffer content back (default on)\n    :NRN - Disable Syncing the buffer content back\n    :NRL - Reselect the last selected region and open it again in a narrowed window\n\nYou can append `!` to most commands to open the narrowed part in the current window instead of a new window. In the case of `:WR`, appending `!` closes the narrowed window in addition to writing to the original buffer.\n\n### Visual mode commands:\n\n    \u003cLeader\u003enr\t\t - Open the current visual selection in a new narrowed window\n\n### Scripting Functions:\n\n    nrrwrgn#NrrwRgnStatus()   - Return a dict with all the status information for the current window\n\n### Attention\n\n   :NRM is currently experimental\n\n## Similar Work\n\nAndreas Politz' [narrow_region](http://www.vim.org/scripts/script.php?script_id=2038)\u003cbr/\u003e\nKana Natsunos [narrow](http://www.vim.org/scripts/script.php?script_id=2097)\u003cbr/\u003e\nJonas Kramers [narrow](http://www.vim.org/scripts/script.php?script_id=2446)\u003cbr/\u003e\nMarcin Szamotulskis [ViewPort](http://www.vim.org/scripts/script.php?script_id=4296)\u003cbr/\u003e\n\n## License \u0026 Copyright\n\n© 2009-2014 by Christian Brabandt. The Vim License applies. See `:h license`\n\n__NO WARRANTY, EXPRESS OR IMPLIED.  USE AT-YOUR-OWN-RISK__\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisbra%2FNrrwRgn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisbra%2FNrrwRgn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisbra%2FNrrwRgn/lists"}