- Mar 23, 2013Marcin Szamotulski wrote:
> If one is in the directory of the current file '%:h:h' expands to '.',That's correct, when using :h while there is nothing to remove leaves
> while it should expand tas '%:p:h:h' does. This is probably is not very
> useful case since using '../' is much simpler, though it might be used
> in a plugin (I've never been hit by this though). Expansion of '%:h:h'
> works fine when the current directory is not where the current file is.
> Another, similar issue is when the current file is:
> and the current directory is
> Then both '%:h:h' and '%:h:h:h' expand to '.'.
the path unchanged.
You are only young once, but you can stay immature indefinitely.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.
- << Previous post in topic Next post in topic >>