when doing web development, in views, I deal with a lot with references to absolute urls. Eg:
--
-- <script src="/foo/bar.js" />
My goal is to put my cursor over the /foo/bar.js and type ` gf `
But /foo/bar.js is an absolute path, and my paths may vary from project to project.
When opening a file in vim, I always autocmd :lcd to the project's root
So given that my static files could be in <project>/static/foo/bar.js for a project but it could also be <project>/module_foo/static/foo/bar.js (the place can change from project to project)
So how can I configure vim so the ` gf ` command will find the good file ?
Is it possible to hook a python function in place of isfname in order to return the good filename or somthing like this ?
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment