Narrowing - very selective editing
Narrowing displays just a part of the current buffer you are working with, allowing you to carry out some very specific editing.
Typical uses are to select a region or a function definition to narrow on.
For example, you may have two Clojure functions that have use the same local names in a let
statement. The local name is used a number of times and you want to rename it. By narrowing on to just that function, you can change the local names all at once without affecting the other function definition.
Example: Narrowing and multiple replace
In this example I narrow my 100daysofcode log to just edit a single day of the log and use iedit to manage a multiple replace on just the text for that day.