VIM tip "Easy edit of files in the same directory"
Created: February 24, 2001 Complexity: intermediate Author: scott Version: 5.7

%/ stands for current dir

Yosi
On Sat, Nov 15, 2008 at 2:11 AM, Ben Schmidt
<[EMAIL PROTECTED]> wrote:
>
>> :e %p:h/tool2.cpp
>
> This is missing a colon; it should be
>
>> :e %:p:h/tool2.cpp
>
> You can combine this idea, which I think is the best by a long shot,
> with a map if desired, so you only have to type %/ rather than
> %:p:h:
>
> :cmap %/ %:p:h/
>
> or some other key. Note that when using it, you won't see the % until
> you've waited a bit (and thus avoided the mapping entirely) or typed the
> / as well; i.e. you need to type %/ fairly quickly for it to work, and
> you won't get visual feedback as you do.
>
> Ben.
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to