Re: wish: show search progress on slow searches

2007-05-01 Thread Yakov Lerner
On 4/30/07, Bram Moolenaar [EMAIL PROTECTED] wrote: [This is development, removed the Vim maillist] Yakov Lerner wrote: On 4/29/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/29/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Wish: when search is slow, show the

Re: accessing vim's clipboard from java

2007-05-01 Thread Ernie Rael
java will have to do whatever any other application may do, without special knowledge about Vim. ... There's nothing Vim-specific there. Up to now jVi does exactly as you say. But now I want to get hold of the structure of a VIsual area, so a block paste can be implemented. In os_win32.c there

Re: wish: show search progress on slow searches

2007-05-01 Thread Bram Moolenaar
[This is development, removed the Vim maillist] Yakov Lerner wrote: On 4/29/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 4/29/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: Wish: when search is slow, show the progress line number every second on the bottom

Re: feedkeys() allowed in sandbox

2007-05-01 Thread Bram Moolenaar
John Beckett wrote: A.J.Mechelynck wrote: Is folding really needed in a default modeline? Folding may be useful in a modeline. (Don't know what you call a default modeline.) By default modeline I mean I would like Vim to be changed so that its default behaviour is aggressively safe.

Re: feedkeys() allowed in sandbox

2007-05-01 Thread John Beckett
Bram Moolenaar wrote: N times as safe still isn't 100% safe. I am not claiming that sanity-checking a modeline before execution would make it 100% safe. But there have been many examples in other software where minor bugs have turned into security disasters because some simple point that could

Re: feedkeys() allowed in sandbox

2007-05-01 Thread John Beckett
Matthew Winn wrote: If there was a security problem in Vim do you really think it couldn't be exploited in 100 characters? That's a pretty shaky foundation on which to build your security. I am quite surprised at the lack of appreciation for the merits of defense in depth here. I am not

Re: feedkeys() allowed in sandbox

2007-05-01 Thread A.J.Mechelynck
Bram Moolenaar wrote: [...] Modelines are default off when you are root. The mail filetype plugin also switches it off. [...] Are you sure? In a terminal logged-in as root, using vim 7.0.235: vim -u NONE -N :set ml? mls? modeline modelines=5 Modelines default off when

Re: feedkeys() allowed in sandbox

2007-05-01 Thread Bram Moolenaar
Tony Mechelynck wrote: Bram Moolenaar wrote: [...] Modelines are default off when you are root. The mail filetype plugin also switches it off. [...] Are you sure? In a terminal logged-in as root, using vim 7.0.235: vim -u NONE -N :set ml? mls? modeline

patch 7.0.236

2007-05-01 Thread Bram Moolenaar
Patch 7.0.236 Problem:Linux 2.4 uses sysinfo() with a mem_unit field, which is not backwards compatible. Solution: Add an autoconf check for sysinfo.mem_unit. Let mch_total_mem() return Kbyte to avoid overflow. Files: src/auto/configure, src/configure.in,

Re: patch 7.0.236

2007-05-01 Thread scott
i had to 'rm src/auto/config.cache before i could build with this one sc

Re: patch 7.0.236

2007-05-01 Thread A.J.Mechelynck
scott wrote: i had to 'rm src/auto/config.cache before i could build with this one sc Yes, this is normal for a patch affecting the configure files: src/auto/configure src/configure.in src/config.h.in Me too: the first make ended in an error, suggesting to

patch 7.0.237

2007-05-01 Thread Bram Moolenaar
Patch 7.0.237 Problem:For root it is recommended to not use 'modeline', but in not-compatible mode the default is on. Solution: Let 'modeline' default to off for root. Files: runtime/doc/options.txt, src/option.c *** ../vim-7.0.236/runtime/doc/options.txt Tue Oct 10

Re: patch 7.0.237

2007-05-01 Thread A.J.Mechelynck
Bram Moolenaar wrote: Patch 7.0.237 Problem:For root it is recommended to not use 'modeline', but in not-compatible mode the default is on. Solution: Let 'modeline' default to off for root. Files: runtime/doc/options.txt, src/option.c Note: :set mlvim or

patch 7.0.238

2007-05-01 Thread Bram Moolenaar
Patch 7.0.238 Problem:Crash when :match pattern runs into 'maxmempattern'. (Yakov Lerner) Solution: Don't free the regexp program of match_hl. Files: src/screen.c *** ../vim-7.0.237/src/screen.c Tue Nov 28 16:16:03 2006 --- src/screen.cTue May 1 21:36:50 2007

Regex performance - SoC

2007-05-01 Thread James Longstreet
Hello, I'm wondering if any of the Summer of Code winners are tackling the regex performance thing suggested here: http://www.vim.org/soc/ideas.php If anyone chose that project, I'll of course defer to them. But if no one's working on it, I might give it a shot, I think it'd be fun.

Minor fix for Vim Tip #1078 (Closing buffer without closing window)

2007-05-01 Thread Michael Henry
All, Vim Tip #1078 (Best way to close (delete) buffer without closing its window) is pretty useful. In the version shown on the tip page[1], it doesn't keep your cursor in the window you are trying to preserve. I think the following line is supposed to serve that purpose: execute

Re: help needed with completion in version 7

2007-05-01 Thread Bram Moolenaar
Andrei Voropaev wrote: [...] It's difficult to decide when to leave this editing mode. Also because you can make a typo, and expect Backspace to correct that. If the key exits completion mode you can't go back to what you were doing. It's strange that you are saying it's difficult to

Auto-bracket/Auto-brace for Vim (automatic insertion/formatting of curly braces)

2007-05-01 Thread madiyaan
Hello all, I want to know if there is a way for me to configure Vim such that when editing *.cc *.c *.cpp *.h files, when I type in: if (bla == bla1) { cursor is here it types in: if (bla == bla1) { cursor is here } I don't know if I explained this well, but if you look at this webpage:

Re: determining if buffer is modified.. etc

2007-05-01 Thread Yakov Lerner
On 4/30/07, Normandie Azucena [EMAIL PROTECTED] wrote: -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 1:53 PM To: Normandie Azucena Cc: vim@vim.org Subject: Re: determining if buffer is modified.. etc On 4/30/07, Normandie Azucena [EMAIL

Re: ...to shoot into oneelse feet...

2007-05-01 Thread Peter Palm
Op maandag 30 april 2007, schreef [EMAIL PROTECTED]: HmmmESC kills everything between # and $... u would undo it...but this like do the wrong thing and repair it afterwards. What I want is to prevent doing wrong things by aborting them,..not to do them and saying ooops sorry...my

[Fwd: Re: arabic font]

2007-05-01 Thread A.J.Mechelynck
Forward to list. Best regards, Tony. Original Message Subject: Re: arabic font Date: Mon, 30 Apr 2007 15:04:01 -0700 (PDT) From: Babiker Osman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hi I think this time it is progressing after some addition to my _vimrc gfn= tab responds

Re: moving virual rectange about in virtualedit mode

2007-05-01 Thread Tim Chase
Well, could one not do something like the following? :vnoremap down downodowno No, I did not mean move the corners of the selection. I meants move the contents. I meant erase the contents at the old place and put the contents at the new place. Imagine moving text frames in the