Narrowingλ︎
Narrowing to a region enables vim commands to be applied to a specific part of the current buffer, rather than the whole buffer.
Common examples include - replacing local variables within a specific function (avoiding affecting other function definitions)
NrrwRgn pluginλ︎
NrrwRgn plugin is inspired by the Narrowing feature of Emacs and means to focus on a selected region while making the rest inaccessible.
Yode pluginλ︎
yode-nvim will focus on selected text within a file.
Narrow by replacing the current buffer
YodeCreateSeditorReplace
focus on a code part and replace it with the current bufferYodeBufferDelete
delete the current buffer and jump back to file, if it is a seditor
Or narrow using a floating window
- YodeCreateSeditorFloating focus on a code part and make it floating, stay at the current (main) view