I would like to have the following functionality in the vim editor.
Is there already such a functionality in vim or such a vimscript?
You are looking for something called emacs calls Narrowing. There are is a Vim plugin that does this for you: Christian Brabandt's NrrwRgn plugin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With