Re: How do I make the current working directory follow the active document in Gvim?

2007-02-28 Thread Bram Moolenaar
Tony Mechelynck wrote: Bram Moolenaar wrote: Tony Mechelynck wrote: here are a few examples; some of them use a fictional subject: Nice overview. Let me add this to the user manual. In the paragraph about :help patternTab with 'wildmenu' on, I let myself be carried away: Up

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-27 Thread Bram Moolenaar
Tony Mechelynck wrote: here are a few examples; some of them use a fictional subject: Nice overview. Let me add this to the user manual. -- panic(Fod fight!); -- In the kernel source aha1542.c, after detecting a bad segment list /// Bram Moolenaar -- [EMAIL PROTECTED] --

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-27 Thread A.J.Mechelynck
Bram Moolenaar wrote: Tony Mechelynck wrote: here are a few examples; some of them use a fictional subject: Nice overview. Let me add this to the user manual. In the paragraph about :help patternTab with 'wildmenu' on, I let myself be carried away: Up and Down don't apply to the

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
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

RE: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread Sibin P. Thomas
-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

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread Tim Chase
- 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.

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread Christian Ebert
* cga2000 on Monday, February 26, 2007 at 11:57:39 -0500: 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

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
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

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
On Mon, Feb 26, 2007 at 12:32:19PM EST, Tim Chase wrote: - To change (once) to the dir of the current file :cd %:p:h [..] If you're impatient, full details can be found at :help filename-modifiers 2. How to use vim's help efficiently There are several attacks one can

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread A.J.Mechelynck
cga2000 wrote: 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.

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread A.J.Mechelynck
cga2000 wrote: [...] I find the exercise useful since as, I believe, A. Einstein once remarked .. if you can't explain it .. you don't fully understand it .. or something to that effect. Some French author of the 17th century I think (Boileau?): Ce qui se conçoit bien s'énonce clairement Et

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
On Mon, Feb 26, 2007 at 08:47:00PM EST, A.J.Mechelynck wrote: cga2000 wrote: [...] I find the exercise useful since as, I believe, A. Einstein once remarked .. if you can't explain it .. you don't fully understand it .. or something to that effect. Some French author of the 17th century I

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
On Mon, Feb 26, 2007 at 08:06:12PM EST, A.J.Mechelynck wrote: cga2000 wrote: [..] 2. How to use vim's help efficiently here are a few examples; some of them use a fictional subject: :help gives you very general help. Start scrolling and you will see a

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread A.J.Mechelynck
cga2000 wrote: On Mon, Feb 26, 2007 at 08:47:00PM EST, A.J.Mechelynck wrote: cga2000 wrote: [...] I find the exercise useful since as, I believe, A. Einstein once remarked .. if you can't explain it .. you don't fully understand it .. or something to that effect. Some French author of the

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-26 Thread cga2000
On Mon, Feb 26, 2007 at 11:39:08PM EST, A.J.Mechelynck wrote: cga2000 wrote: On Mon, Feb 26, 2007 at 08:47:00PM EST, A.J.Mechelynck wrote: [..] Avant donc que d'écrire, apprenez à penser. (Before writing, one must learn to think) .. (rough translation) Let's try to recapture the

How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread Noah Spurrier
How do I configure Gvim so that the current directory follows the active document? I know I've seen this somewhere in the Vim docs, but none of my searches are turning it up now. When I'm editing a document in Gvim, I find that Gvim always uses my home directory as the working directory. If I

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread Bill McCarthy
On Sun 25-Feb-07 6:22pm -0600, Noah Spurrier wrote: How do I configure Gvim so that the current directory follows the active document? Try this: autocmd BufReadPost * lcd %:h -- Best regards, Bill

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread Thor Andreassen
On Sun, Feb 25, 2007 at 06:50:41PM -0600, Bill McCarthy wrote: On Sun 25-Feb-07 6:22pm -0600, Noah Spurrier wrote: How do I configure Gvim so that the current directory follows the active document? Try this: autocmd BufReadPost * lcd %:h You could also try :set autochdir, see :help

Re: How do I make the current working directory follow the active document in Gvim?

2007-02-25 Thread A.J.Mechelynck
Noah Spurrier wrote: How do I configure Gvim so that the current directory follows the active document? I know I've seen this somewhere in the Vim docs, but none of my searches are turning it up now. When I'm editing a document in Gvim, I find that Gvim always uses my home directory as the