Re: gvim current directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



solved

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:
http://vim.wikia.com/wiki/Set_working_directory_to_the_current_file

--
Michael   hennebry@xxxxxxxxxxxxxxxxxxxxx
"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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux