Closed gabebw closed 5 years ago
By factoring out find-location-of from viw, I can separate the data (the location to edit) from the side-effect (opening a file in my editor).
find-location-of
viw
And thus I can turn the viw script into the :Viw Vim command!
:Viw
Now I can script other things that need to find the location of something, without always opening Vim (as viw did).
cc @christoomey, from whom I stole viw and who may appreciate the Vim version of it.
For the curious, viw was originally added in b91cfed27465c291eeed5aabe254eb573fb47187.
By factoring out
find-location-of
fromviw
, I can separate the data (the location to edit) from the side-effect (opening a file in my editor).And thus I can turn the
viw
script into the:Viw
Vim command!Now I can script other things that need to find the location of something, without always opening Vim (as
viw
did).cc @christoomey, from whom I stole
viw
and who may appreciate the Vim version of it.