Ah, sorry.  Normally when coding (the only time I care about the current
directory of vim), I'll be working with a tree of files, something like:

library1/src/foo.cpp
library1/src/foo.h
library2/client/rpc_interface.py

I want to be able to type:
:e library1/src/foo.cpp     or
:e library2/client/rpc_interface.py

However, if I'm already in foo.cpp, I automatically type:
:e %:h/foo.h

So by siblings I meant "files in the same directory as the file I'm
currently editing".  I actually do this for subdirectories as well (say
there's a 'library1/src/testing' directory, then it's %:h/testing/blah.cpp).
 To explain what this is doing, I believe the help topic in vim for the
description of these is 'filename-modifiers', and % is the filename of the
current buffer.

On Mon, Oct 4, 2010 at 5:50 AM, Brian McKee <[email protected]> wrote:

>
>
> On Sun, Oct 3, 2010 at 8:38 PM, Kyle Lippincott <[email protected]>wrote:
>
>> if the file has siblings, I'll just automatically use %:h/ to get to them
>
>
> Hmmm?  I didn't follow that part of your comment...
>
> --
> Hey, it's your computer.... isn't it?
>
> --
> You received this message from the "vim_mac" 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 from the "vim_mac" 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

Reply via email to