Re: French?

2008-08-24 Fir de Conversatie Jürgen Krämer
Hi, Bill McCarthy wrote: > > I just updated my runtime and noticed that motion.txt > (August 10, 2008) has what looks like a French comment. > > See :help bar > > = > | To screen column [count] in the current line. >

French?

2008-08-24 Fir de Conversatie Bill McCarthy
Hello Vim Developers, I just updated my runtime and noticed that motion.txt (August 10, 2008) has what looks like a French comment. See :help bar = | To screen column [count] in the current line. |exclusiv

Re: trivial doc/readme version fixes

2008-08-24 Fir de Conversatie Bram Moolenaar
Michael Wookey wrote: > While skimming through the various vim readme's, I noticed some mismatched > references to various vim versions. Thanks. -- The average life of an organization chart is six months. You can safely ignore any order from your boss that would take six months to complete.

Patch 7.2.006

2008-08-24 Fir de Conversatie Bram Moolenaar
Patch 7.2.006 Problem:HTML files are not recognized by contents. Solution: Add a rule to the scripts file. (Nico Weber) Files: runtime/scripts.vim *** ../vim-7.2.005/runtime/scripts.vim Sat Aug 9 19:37:09 2008 --- runtime/scripts.vim Sat Aug 16 04:05:34 2008 *** *** 234

Re: sort()'s function reference arg

2008-08-24 Fir de Conversatie Bram Moolenaar
Robert Webb wrote: > The help for sort() says the following with respect to the function > reference argument: > > ...The function is invoked with two > items as argument and must return zero if they are equal, 1 if > the first one sorts after the second one, -1 if the first one >

Patch 7.2.005

2008-08-24 Fir de Conversatie Bram Moolenaar
Patch 7.2.005 Problem:A few problems when profiling. Using flag pointer instead of flag value. Allocating zero bytes. Not freeing used memory. Solution: Remove wrong '&' characters. Skip dumping when there is nothing to dump. Free used memory. (Dominique Pelle)

Patch 7.2.004

2008-08-24 Fir de Conversatie Bram Moolenaar
Patch 7.2.004 Problem:Cscope help message is not translated. Solution: Put it in _(). (Dominique Pelle) Files: src/if_cscope.c, src/if_cscope.h *** ../vim-7.2.003/src/if_cscope.c Tue Jun 24 23:52:06 2008 --- src/if_cscope.c Mon Aug 25 04:34:19 2008 *** *** 74,80

Patch 7.2.003

2008-08-24 Fir de Conversatie Bram Moolenaar
Patch 7.2.003 Problem:Typo in translated message. Message not translated. Solution: Correct spelling. Add _(). (Dominique Pelle) Files: src/spell.c, src/version.c *** ../vim-7.2.002/src/spell.c Tue Jun 24 22:21:31 2008 --- src/spell.c Sun Aug 10 12:51:38 2008 *** *** 77

Re: out of memory bug on win32 platforms

2008-08-24 Fir de Conversatie Bram Moolenaar
George Reilly wrote: > 2008/8/23 Jelle Geerts <[EMAIL PROTECTED]>: > > Hello, > > > > When allocating memory, lalloc() is called, which uses mch_avail_mem(). But > > mch_avail_mem() sometimes fails. It returns the available physical memory + > > available page file memory, which can sometimes wr

Re: out of memory bug on win32 platforms

2008-08-24 Fir de Conversatie Bram Moolenaar
Jelle Geerts wrote: > When allocating memory, lalloc() is called, which uses > mch_avail_mem(). But mch_avail_mem() sometimes fails. It returns the > available physical memory + available page file memory, which can > sometimes wrap around 32-bits. > > Also, mch_avail_mem() uses GlobalMemorySta

[patch] for gvim-7.2 swallowing space from IM

2008-08-24 Fir de Conversatie 余钰炜
Hi, the gvim-7.2 will swallow the space char which commit to gvim from asynchronous Input Method Engine, like IBus (a recent IME still under developing). In IBus, The keyval is processed in one loop, but the commit string may be committed to gvim in the following loop. In this case, the if clause

Re: Moving cursor to start of current word

2008-08-24 Fir de Conversatie Tony Mechelynck
On 24/08/08 22:57, Fredrik Gustafsson wrote: > On Sun, Aug 24, 2008 at 09:14:25PM +0200, Tony Mechelynck wrote: >> On 24/08/08 08:01, Robert Webb wrote: >>> Tony Mechelynck wrote: >>> > What's the simplest way to move the cursor to the start of > the word under it? > "Under it" include

Re: How to match a Chinese character in VIM?

2008-08-24 Fir de Conversatie Tony Mechelynck
On 24/08/08 22:39, Bram Moolenaar wrote: > > Tony Mechelynck wrote: > >> On 24/08/08 01:58, .幻想之诚 wrote: >>> Is that a bug, Tony? >> I think so; but I suppose Bram would know better than I what causes it. >> >> A little trial and error seems to indicate that if the lower and upper >> bounds differ

Re: Moving cursor to start of current word

2008-08-24 Fir de Conversatie Fredrik Gustafsson
On Sun, Aug 24, 2008 at 09:14:25PM +0200, Tony Mechelynck wrote: > > On 24/08/08 08:01, Robert Webb wrote: > > Tony Mechelynck wrote: > > > >>> What's the simplest way to move the cursor to the start of > >>> the word under it? > >>> "Under it" includes the word after the cursor if there's no > >

Re: How to match a Chinese character in VIM?

2008-08-24 Fir de Conversatie Bram Moolenaar
Tony Mechelynck wrote: > On 24/08/08 01:58, .幻想之诚 wrote: > > Is that a bug, Tony? > > I think so; but I suppose Bram would know better than I what causes it. > > A little trial and error seems to indicate that if the lower and upper > bounds differ by 256 or less (i.e. if there are at most 25

RE: Can't restore window state.

2008-08-24 Fir de Conversatie Bram Moolenaar
Robert Webb wrote: > > > This appears to be a bug. Consider this test function. > > > > > > func! Test() > > > let oldCursor = winsaveview() > > > normal G > > > call winrestview(oldCursor) > > > split > > > endfunc > > > > > > Now edit a long file and go somewhere where t

Re: Moving cursor to start of current word

2008-08-24 Fir de Conversatie Peter Prohaska
On Sun, Aug 24, 2008 at 21:14, Tony Mechelynck <[EMAIL PROTECTED]> wrote: > What about eb then? (forward to end of word, then back to begin of > word). Hm, this works when in the space between words, but not when on > the last letter of a word. OK: heb (left one, right to end of word, left > to be

Guarded regions, working?

2008-08-24 Fir de Conversatie Mikael Jansson
Hi, Looking at the documentation for NetBeans, I thought that GUARDED would be what I wanted. However, looking at the source (src/netbeans.c), I don't understand how it is supposed to work. 1. If you don't have FEAT_SIGNS enabled, nothing is actually done in the 'guarded' command. 2. Nothing ex

Re: Bug in clipboard handling on X11

2008-08-24 Fir de Conversatie Bram Moolenaar
Dominique Pelle wrote: > On Fri, Aug 22, 2008 at 3:32 AM, Matt Wozniski wrote: > > > Not sure what's going on here, but I've found a crash that's easy to > > reproduce. First, open two X11 enabled vim (not gvim) processes. In > > the first, do: > > :let @+ = repeat('a', 1024*1024) > > in orde

Re: A small patch for gui_mac.c to let ATSUI support NON-antialias.

2008-08-24 Fir de Conversatie Bram Moolenaar
LC Mi wrote: > New to submitting a patch. Please let me know how to submit if folks agree > with this patch. :-) Thanks! > > Attach the diff: Thanks. What version of Mac OS/X does this work with? What have you tested it on? Is LC Mi your full name? I need to know where code comes from. --

Re: Moving cursor to start of current word

2008-08-24 Fir de Conversatie Tony Mechelynck
On 24/08/08 08:01, Robert Webb wrote: > Tony Mechelynck wrote: > >>> What's the simplest way to move the cursor to the start of >>> the word under it? >>> "Under it" includes the word after the cursor if there's no >>> identifier under it. >> ... >> viw`< > > Won't work if cursor is in the sp

Re: A small patch for gui_mac.c to let ATSUI support NON-antialias.

2008-08-24 Fir de Conversatie Nico Weber
Hi, On 24.08.2008, at 20:09, LC Mi wrote: > Thank you! How to submit the patch though? You've submitted it now. In my experience, Bram will add it to his TODO list and, if there are no reports about any problems, will merge it in a few months. > I tried mac vim, looks great, but I didn't f

Re: out of memory bug on win32 platforms

2008-08-24 Fir de Conversatie Jelle Geerts
And heres the patch I forgot to attach. -- Jelle Geerts On Sun, Aug 24, 2008 at 8:16 PM, Jelle Geerts <[EMAIL PROTECTED]> wrote: > Hey, > > You were right and wrong. Using min() wouldn't help since we pass the > overflowed result of the addition, which could be say 1, even when there is > _much_

Re: out of memory bug on win32 platforms

2008-08-24 Fir de Conversatie Jelle Geerts
Hey, You were right and wrong. Using min() wouldn't help since we pass the overflowed result of the addition, which could be say 1, even when there is _much_ more memory available on the computer. It could happen on 64-bit systems too when the user has a lot of memory (say 64 GiB, we don't see th

Re: A small patch for gui_mac.c to let ATSUI support NON-antialias.

2008-08-24 Fir de Conversatie LC Mi
Thank you! How to submit the patch though? I tried mac vim, looks great, but I didn't feel I had to do the switching for now... :-) LC On Sat, Aug 23, 2008 at 6:50 PM, Jjgod Jiang <[EMAIL PROTECTED]> wrote: > > Hi, > > On Sun, Aug 24, 2008 at 12:24 AM, LC Mi <[EMAIL PROTECTED]> wrote: > > New to

out of memory bug on win32 platforms

2008-08-24 Fir de Conversatie Jelle Geerts
Hello, When allocating memory, lalloc() is called, which uses mch_avail_mem(). But mch_avail_mem() sometimes fails. It returns the available physical memory + available page file memory, which can sometimes wrap around 32-bits. Also, mch_avail_mem() uses GlobalMemoryStatus() which isn't working p

sort()'s function reference arg

2008-08-24 Fir de Conversatie Robert Webb
Hi, The help for sort() says the following with respect to the function reference argument: ...The function is invoked with two items as argument and must return zero if they are equal, 1 if the first one sorts after the second one, -1 if the first one sorts before the second one

RE: Can't restore window state.

2008-08-24 Fir de Conversatie Robert Webb
Bram Moolenaar wrote: > Robert Webb wrote: > > > This appears to be a bug. Consider this test function. > > > > func! Test() > > let oldCursor = winsaveview() > > normal G > > call winrestview(oldCursor) > > split > > endfunc > > > > Now edit a long file and go somewhere w

Re: :args reorders arguments

2008-08-24 Fir de Conversatie björn
2008/8/24 Bram Moolenaar <[EMAIL PROTECTED]>: > >> Still, this behaviour of :args is very counterintuitive: if I start >> Vim with "gvim file1.m file1.h file2.m" then the arglist will be the >> order I specified, whereas if I start Vim, then type ":args file1.m >> file1.h file2.m" the arglist will

Re: Moving cursor to start of current word

2008-08-24 Fir de Conversatie Andy Wokula
Robert Webb schrieb: > Here's what seems like a really stupid question: > > What's the simplest way to move the cursor to the start of the word under > it? > "Under it" includes the word after the cursor if there's no identifier under > it. > > None of these quite work: > > b - The obvious choice,

Re: Bug with v_K and potentially K command

2008-08-24 Fir de Conversatie Pınar Yanardağ
On Sun, Aug 24, 2008 at 10:33 AM, Jan Minář <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 7:26 AM, Jan Minář <[EMAIL PROTECTED]> wrote: > (...) > Thanks for reporting this. Forget my last email. This is the fix: It works fine after v3 patch. Thanks. > > > /* >* Now g

Re: Bug with v_K and potentially K command

2008-08-24 Fir de Conversatie Jan Minář
On Sun, Aug 24, 2008 at 2:45 AM, Pınar Yanardağ <[EMAIL PROTECTED]> wrote: > After applying this patch to Vim 7.2, I got following errors while > trying to use K command (and shell also freezes after getting the > errors). I tried to reproduce them with a stable scenario, but > couldn't find a reas

Re: Bug with v_K and potentially K command

2008-08-24 Fir de Conversatie Jan Minář
On Sun, Aug 24, 2008 at 7:26 AM, Jan Minář <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 2:45 AM, Pınar Yanardağ <[EMAIL PROTECTED]> wrote: >> After applying this patch to Vim 7.2, I got following errors while >> trying to use K command (and shell also freezes after getting the >> errors). I