[CentOS] gvim current directory

Tue Jun 16 17:09:15 UTC 2015
Michael Hennebry <hennebry at web.cs.ndsu.nodak.edu>


On Tue, 16 Jun 2015, Michael Hennebry wrote:

> Is there a way to automatically cause gvim's current
> directory to be the directory of the edited file?

Searching on "working directory" worked better than
searching on "current directory"

In my ~/.vimrc file:
command CDC cd %:p:h

:CDC will do what I want.

I found it here:

Michael   hennebry at web.cs.ndsu.NoDak.edu
"SCSI is NOT magic. There are *fundamental technical
reasons* why it is necessary to sacrifice a young
goat to your SCSI chain now and then."   --   John Woods