Sometimes, in Vim, I want to show only a specific part of a file (for example, a specific method) while hiding the rest.
This helps me to focus at the problem at hand.
I would like to do so without actually changing the file. Any idea on how to do this?
cheers & regards, Klaas
Similar to the already mentioned narrow plug-in, there's NrrwRgn. Visual select the region, :NR and the window is split with the selected region isolated in the new window. Very useful for coding, indeed.
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