Saturday, November 28, 2009

Re: Problem about the "browse" command

On 29/11/09 05:58, winterTTr wrote:
>
>
> On Sat, Nov 28, 2009 at 1:08 AM, Tony Mechelynck
> <antoine.mechelynck@gmail.com <mailto:antoine.mechelynck@gmail.com>> wrote:
>
> On 27/11/09 09:41, winterTTr wrote:
>
>
>
> On Fri, Nov 27, 2009 at 4:31 PM, Tony Mechelynck
> <antoine.mechelynck@gmail.com
> <mailto:antoine.mechelynck@gmail.com>
> <mailto:antoine.mechelynck@gmail.com
> <mailto:antoine.mechelynck@gmail.com>>> wrote:
>
> On 30/10/09 15:50, Ben Fritz wrote:
> >
> >
> >
> > On Oct 29, 8:49 pm, winterTTr<winterttr....@gmail.com
> <mailto:winterttr....@gmail.com>
> <mailto:winterttr....@gmail.com
> <mailto:winterttr....@gmail.com>>> wrote:
>
> >> There is a problem about the "browse" command for my gvim now.
> >> However, i can not find the reason for it.
> >>
> >> I remember that , when i run the command
> >> :browse w <filename>
> >> to a new buffer, there should be a dialog shown to let me select
> >> the file position for saving , but now the dialog does not
> show any
> >> more, it seems
> >> like that , i have never input the command . Nothing
> happens, and
> >> the command following the "browse" which is "w<filename>" for
> this case
> >> is not executed neither.
> >>
> >
> > I cannot reproduce, using the Vim 7.2.267 "Cream" build on
> Windows XP.
> > Does the same thing happen for you when running from the command
> > prompt with gvim -N -u NONE?
>
> Neither can I on Linux with gvim 7.2.309 for GTK2/Gnome2 GUI.
>
> WinterTTr, you _are_ giving a "real" filename aren't you,
> without the
> less-than and greater-than signs given in your message?
>
> When I do
> :browse w
> I see a save-as dialog with the directory and current
> filename filled-in
> as defaults, and when I do
> :browse w foobar
> the default filename is replaced by foobar
>
>
> I compile the new version ( 7.2.276 ) from svn not long ago,
> but the
> problem is
> also occurred now.
> I am using VIM on office WindowsXP and the same EXE file on Win7
> home.
> However, the same things happen, and i can not see the FileBrowser
> Dialog anymore.
>
> It is really inconvenient, but i don't know how to fix it.
> Does this thing just happen to me ?
>
>
> Well, have you tried, as Ben said, to start Vim from the command
> prompt as
>
> gvim -N -u NONE
>
> so that any "weird" settings in your vimrc don't make the waters
> murkier?
>
> If this works, then it must be something in your vimrc or in a
> nonstandard plugin. To know which, try either
>
> gvim -N -u NORC
>
> or
>
> gvim --noplugin
>
>
> Yes, I have tried to load the "clean" vim with command " gvim -N -u NORC"
> However, the thing goes as before.
>
> when i try to write the file with :browse w C:\1.bat
> There is nothing happed, even some kind of warning is not displayed.
>
> It is SO weird.
>
> I compile the vim using Mingw On Windows, not using nmake && cl in
> Visual Studio.
> And with the feather of python+ ( which is python 2.6 )
> Maybe there some mistake from the compile environment? I'm not sure.
>
> Maybe i could try to compile with namke && cl and try again.
>
> Anyway , thanks so much for your help :-)
>
>
>
> Best regards,
> Tony.
> --
> "But don't you worry, its for a cause -- feeding global corporations
> paws."
>
>

When I was on Windows, I used to compile with Cygwin (which generates a
native-Windows not-for-cygwin executable by means of the Cygwin version
of MinGW gcc): see
http://users.skynet.be/antoine.mechelynck/vim/compile.htm -- however,
you could use Steve Hall's precompiled "Vim without Cream" installer as
the "Vim" package from http://sourceforge.net/projects/cream/files/ (By
clicking "View all files" you have access to the "Release notes" which
are actually the ":version" output from the build in question). I see
that the latest distro there at the moment is at patchlevel 7.2.303
which is only 6 patches behind Bram's "latest"; and it supports Python
2.6 if the file "python26.dll" can be found in the $PATH at run-time.

Sometimes run-time errors can be erased so fast that you don't have time
to see them (try the ":messages" command to recall them).

Does it make a difference if you use ":browse w x.bat" (not starting
with a letter) or ":browse w x.txt" (with a non-executable extension)
instead of 1.bat ? I suppose not...

Oh, one thing I forgot to ask: your Vim build _is_ compiled with +browse
isn't it? If it isn't, the ":browse" prefix will be accepted as a no-op.


Best regards,
Tony.
--
Review Questions

(1) If Nerd on the planet Nutley starts out in his spaceship at 20 KPH,
and his speed doubles every 3.2 seconds, how long will it be before
he exceeds the speed of light? How long will it be before the
Galactic Patrol picks up the pieces of his spaceship?

(2) If Roger Rowdy wrecks his car every week, and each week he breaks
twice as many bones as before, how long will it be before he breaks
every bone in his body? How long will it be before they cut off
his insurance? Where does he get a new car every week?

(3) If Johnson drinks one beer the first hour (slow start), four beers
the next hour, nine beers the next, etc., and stacks the cans in a
pyramid, how soon will Johnson's pyramid be larger than King
Tut's? When will it fall on him? Will he notice?

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment