Re: gvim current directory

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



On Tue, June 16, 2015 15:15, Jonathan Billings wrote:
> On Tue, Jun 16, 2015 at 11:56:58AM -0500, Michael Hennebry wrote:
>> When I gvim a file from gnome,
>> gvim's working directory is always my home directory.
>> [snip]
>> I am looking for a way to give gvim the correct working directory.
>> Is this a gnome thing?
>
> No, it's not a GNOME thing.  I assume you're opening up gvim from a
> menu?  Then your current working directory is $HOME.  That's the way
> unix/linux works when you start a program and your CWD is $HOME.  The
> graphical interface has a CWD of $HOME, so anything it forks will
> too.
>

What I do is open a terminal session; cd to the working directory I
desire, and then run gvim from the command line.

-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
James B. Byrne                mailto:ByrneJB@xxxxxxxxxxxxx
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

_______________________________________________
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