gabebw / dotfiles

:tulip:
https://gabebw.com
230 stars 23 forks source link

Allow editing anything in my `$PATH` from Vim #148

Closed gabebw closed 5 years ago

gabebw commented 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).

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.

gabebw commented 5 years ago

For the curious, viw was originally added in b91cfed27465c291eeed5aabe254eb573fb47187.