On Mon, Feb 26, 2007 at 12:24:33PM EST, Sibin P. Thomas wrote:
> 
> -----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

Interesting approach.. 

.. a bit like doing a google search on the vim helpfiles in a sense.  

All it brings up in my case is references to the "what's new with vim
6.x as compared with vim 5.x" but with difficult cases, this should give
me enough pointers to search the manuals.

Thanks,
cga

Reply via email to