From bdd25e579bcad1ec859c9333009254fa3b1c781b Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 30 Oct 2024 13:07:17 +0100 Subject: [PATCH] vim:plugs: Add NrrwRgn (narrow region) > This plugin is inspired by the Narrowing feature of Emacs 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. I want this to be able to diff two portions of a file without the need of creating temporary files. (And the ability to automatically bring back changes sounds nice too.) Link: https://github.com/chrisbra/NrrwRgn --- .gitmodules | 3 +++ .local/share/vim/pack/plugins/opt/NrrwRgn | 1 + .local/share/vim/pack/plugins/start/NrrwRgn | 1 + 3 files changed, 5 insertions(+) create mode 160000 .local/share/vim/pack/plugins/opt/NrrwRgn create mode 120000 .local/share/vim/pack/plugins/start/NrrwRgn diff --git a/.gitmodules b/.gitmodules index df84928..ac01da4 100644 --- a/.gitmodules +++ b/.gitmodules @@ -43,6 +43,9 @@ [submodule "Colorizer"] path = .local/share/vim/pack/plugins/opt/Colorizer url = https://github.com/chrisbra/Colorizer +[submodule "NrrwRgn"] + path = .local/share/vim/pack/plugins/opt/NrrwRgn + url = http://github.com/chrisbra/NrrwRgn [submodule "arm-syntax-vim"] path = .local/share/vim/pack/plugins/opt/arm-syntax-vim url = https://github.com/ARM9/arm-syntax-vim diff --git a/.local/share/vim/pack/plugins/opt/NrrwRgn b/.local/share/vim/pack/plugins/opt/NrrwRgn new file mode 160000 index 0000000..e027db9 --- /dev/null +++ b/.local/share/vim/pack/plugins/opt/NrrwRgn @@ -0,0 +1 @@ +Subproject commit e027db9d94f94947153cd7b5ac9abd04371ab2b0 diff --git a/.local/share/vim/pack/plugins/start/NrrwRgn b/.local/share/vim/pack/plugins/start/NrrwRgn new file mode 120000 index 0000000..bc82a57 --- /dev/null +++ b/.local/share/vim/pack/plugins/start/NrrwRgn @@ -0,0 +1 @@ +../opt/NrrwRgn \ No newline at end of file