Wednesday, July 2, 2014

Re: Configure goto file command

On Wed, Jul 2, 2014 at 4:55 PM, David Fishburn <dfishburn.vim@gmail.com> wrote:
    autocmd BufRead */dev/rem/web/*
                \ setlocal sw=4 expandtab tabstop=4|
                \ let projectWebDir = substitute(fnamemodify(expand("<afile>"), ':p:h'), 'rem\(\\\|\/\)web\zs.*', '', '')|
                \ setlocal includeexpr=substitute(v:fname,'^/myroot/',substitute(g:projectWebDir,'\\','/','g').'/','/')

HTH,
David


Thanks a lot David ! This is exactly what I need !!! 


--
Fabien Meghazi

Website: http://www.amigrave.com

--
--
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: