On 24/07/10 15:08, Aaron Lewis wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[top-posted reply reordered]


On 07/24/2010 02:13 PM, Aaron Lewis wrote:
On 07/24/2010 01:59 PM, Tony Mechelynck wrote:
On 24/07/10 07:43, Aaron Lewis wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
     E.g i've got a c source file with a #include "buff.h" macro , and i
want to access `buff.h' quickly , by clicking or some combined keys ,
rather than pushing command directly (edit buff.h) , is it possible with
vim ?

See :help gf

Cool



Best regards,
Tony.


> So .. After googled a lot , how can we get back to original file  ,
> there must be some cool command.
>
> Many thanks !
[signature with nonstandard separator and GPG signature snipped]

You could either use :e # to come back to the previous file, or use CTRL-W f instead of gf (opening the include file in a split-window), then the first file is still there, and closing the other window (e.g. by :q or similar) comes back to it.

See
        :help edit-intro
        :help CTRL-W


Best regards,
Tony.
--
BRIDGEKEEPER: What is the air-speed velocity of an unladen swallow?
ARTHUR:       What do you mean?  An African or European swallow?
BRIDGEKEEPER: Er ...  I don't know that ... Aaaaarrrrrrggghhh!
   BRIDGEKEEPER is cast into the gorge.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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

Reply via email to