Re: GVim File Dialog -- Remeber last opened directory?

2006-04-20 Thread Yi Qiang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bram Moolenaar wrote: > As far as I can guess from Googling a bit this is a bug in some version > of glib. It probably forgets to make a path absolute before calling > gnome_vfs_get_uri_from_local_path(). Or that function should expand the > name its

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-20 Thread Bram Moolenaar
Benji Fisher wrote: > > > > > :set browsedir=last > > > > > > > > > > does not generate an error. When I try > > > > > > > > > > :browse e > > > > > > > > > > I get a similar error: > > > > > > > > > > (gvim:30150): libgnomevfs-CRITICAL **: file gnome-vfs-utils.c: line > > > > > 749 > > > >

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-19 Thread Benji Fisher
On Wed, Apr 19, 2006 at 10:57:44PM +0200, Bram Moolenaar wrote: > > Benji Fisher wrote: > > > > > :set browsedir=last > > > > > > > > does not generate an error. When I try > > > > > > > > :browse e > > > > > > > > I get a similar error: > > > > > > > > (gvim:30150): libgnomevfs-CRITICAL **:

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-19 Thread Bram Moolenaar
Benji Fisher wrote: > > > :set browsedir=last > > > > > > does not generate an error. When I try > > > > > > :browse e > > > > > > I get a similar error: > > > > > > (gvim:30150): libgnomevfs-CRITICAL **: file gnome-vfs-utils.c: line 749 > > > (gnome_vfs_get_uri_from_local_path): assertion `

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-19 Thread Benji Fisher
On Wed, Apr 19, 2006 at 12:00:00PM +0200, Bram Moolenaar wrote: > > Benji Fisher wrote: > > > :set browsedir=last > > > > does not generate an error. When I try > > > > :browse e > > > > I get a similar error: > > > > (gvim:30150): libgnomevfs-CRITICAL **: file gnome-vfs-utils.c: line 749 >

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-19 Thread Bram Moolenaar
Benji Fisher wrote: > On Tue, Apr 18, 2006 at 11:05:22AM -0700, Yi Qiang wrote: > > Bram Moolenaar wrote: > > >The 'browsedir' option should be of help. > > > > > On Linux with the latest vim7 build I get: > > > > (gvim:14701): Gtk-CRITICAL **: gtk_file_system_unix_get_folder: > > assertion `g_

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Yi Qiang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benji Fisher wrote: > On Tue, Apr 18, 2006 at 11:05:22AM -0700, Yi Qiang wrote: >> Bram Moolenaar wrote: >>> The 'browsedir' option should be of help. >>> >> On Linux with the latest vim7 build I get: >> >> (gvim:14701): Gtk-CRITICAL **: gtk_file_syste

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Benji Fisher
On Tue, Apr 18, 2006 at 11:05:22AM -0700, Yi Qiang wrote: > Bram Moolenaar wrote: > >The 'browsedir' option should be of help. > > > On Linux with the latest vim7 build I get: > > (gvim:14701): Gtk-CRITICAL **: gtk_file_system_unix_get_folder: > assertion `g_path_is_absolute (filename)' failed >

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Yi Qiang
Bram Moolenaar wrote: I have never seen that error. Possibly a bug in GTK? What version of gtk2 are you using? I have gtk2 2.8.17 installed. If anyone else can reproduce it or let me know of a gtk2 version that it works with let me know. Yi

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Bram Moolenaar
Yi Qiang wrote: > Bram Moolenaar wrote: > > The 'browsedir' option should be of help. > > > On Linux with the latest vim7 build I get: > > (gvim:14701): Gtk-CRITICAL **: gtk_file_system_unix_get_folder: > assertion `g_path_is_absolute (filename)' failed > > when I set browsedir=last > > Look

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Yi Qiang
Bram Moolenaar wrote: The 'browsedir' option should be of help. On Linux with the latest vim7 build I get: (gvim:14701): Gtk-CRITICAL **: gtk_file_system_unix_get_folder: assertion `g_path_is_absolute (filename)' failed when I set browsedir=last Looks like that's why it is defaulting to $H

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Charles E Campbell Jr
Yi Qiang wrote: Using gvim, I find it very irritating that the Open File dialog always defaults to $HOME instead of the last browsed directory. Is there a way to change this behavior (it is not a limitation of the gtk file chooser) ? Does :help g:netrw_keepdir and :help netrw-c help you

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Bram Moolenaar
Yi Qiang wrote: > Using gvim, I find it very irritating that the Open File dialog always > defaults to $HOME instead of the last browsed directory. Is there a way > to change this behavior (it is not a limitation of the gtk file chooser) ? The 'browsedir' option should be of help. -- Why is i

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Mark Woodward
Hi Yi Qiang, On Tue, 18 Apr 2006 00:03:13 -0700 Yi Qiang <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > Using gvim, I find it very irritating that the Open File dialog always > defaults to $HOME instead of the last browsed directory. Is there a > way to c

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Mark Woodward
On Tue, 18 Apr 2006 00:03:13 -0700 Yi Qiang <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > Using gvim, I find it very irritating that the Open File dialog always > defaults to $HOME instead of the last browsed directory. Is there a > way to change this beh

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Yakov Lerner
On 4/18/06, Yi Qiang <[EMAIL PROTECTED]> wrote: > Using gvim, I find it very irritating that the Open File dialog always > defaults to $HOME instead of the last browsed directory. Is there a way > to change this behavior (it is not a limitation of the gtk file chooser) ? In my linux/gtk gvim, fil

Re: GVim File Dialog -- Remeber last opened directory?

2006-04-18 Thread Eric Arnold
You probably need to give your system specs. The WinXP gvim does remember the last directory used. I don't know how to change the behavior of the default GUI open button, but you can create your own GUI buttons using Vim scripts. As a suggestion, you might consider using the : prompt to open n