tpope / vim-apathy

apathy.vim: Set the 'path' option for miscellaneous file types
180 stars 9 forks source link

Force vim to use our custom includeexpr to get to the correct file #11

Closed ms closed 5 years ago

ms commented 5 years ago

Also added basic support for globally installed packages when npm is used.

This is my first foray at modifying a vim plugin after a bit of reading about VimL so I welcome any suggestion for improvement and or criticism. Unsetting the path feels hacky but I don't see an other way to avoid editing directories, having to manually look for the main entry and then gf-ing again on that file.

ms commented 5 years ago

This does work for gf but it breaks :find (and similar commands) unfortunately. Maybe I should remap gf instead of clearing 'path'?

tpope commented 5 years ago

Yes, remapping gf is the way to go. I have a companion plugin to do exactly that but it's taking me forever to release it.