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