-----Original Message-----
From: cga2000 [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 26, 2007 10:28 PM
To: vim@vim.org
Subject: Re: How do I make the current working directory follow the active
document in Gvim?

On Sun, Feb 25, 2007 at 07:57:39PM EST, A.J.Mechelynck wrote:
[..]
> 
> - To change (once) to the dir of the current file
> 
>       :cd %:p:h

Nice. 

But I'm not going to remember it until I understand it.

I scoured the :help files but couldn't find and explanation of the
syntax. 

:p is short for :print and :h is help.

So there's two things I don't know:

1. The symbolic (?) language you are using - the same that's used when
   scripting vim, I would imagine.

2. How to use vim's help efficiently 

:-)

Thanks,

Cga



2. How to use vim's help efficiently --> try :help topic.
If that doesn't give you what you want try -> :helpgrep topic (followed by
:cwin if needed).

Try :helpgrep %:p:h      you will find the meaning of %:p:h


Regards,
Sibin


DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. Before opening attachments please check them for viruses and 
defects. MindTree Consulting Limited (MindTree) will not be responsible for any 
viruses or defects or any forwarded attachments emanating either from within 
MindTree or outside. If you have received this message by mistake please notify 
the sender by return  e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.  Please note that e-mails are susceptible to change and 
MindTree shall not be liable for any improper, untimely or incomplete 
transmission.

Reply via email to