Re: feedkeys() allowed in sandbox

2007-04-29 Thread Matthew Winn
On Sat, 28 Apr 2007 22:43:23 +1000, John Beckett [EMAIL PROTECTED] wrote: Potentially unsafe means we're pretty sure it IS safe, but (for example), it's simply not worthwhile allowing a modeline longer than 100 bytes because if another vulnerability were ever found, we don't want to make it

Viminfo dictionaries

2007-04-29 Thread Thomas
Hi, Part two in this week's installment of unsolicited comment on vimscript: I also realized that viminfo doesn't save upper case letter variables the values of which are dictionaries. This can be solved by using VimEnter VimLeavePre autocommands and by converting the variable to from

Re: feedkeys() allowed in sandbox

2007-04-29 Thread John Beckett
Matthew Winn wrote: I don't like the idea of preventing modelines over 100 bytes. I imagine (haven't looked) that a modeline has no hard limit to its length. So multi-megabyte modelines are probably handled by Vim. That's potentially offering attackers extraordinary power. Would someone who

patch 7.0.235

2007-04-29 Thread Bram Moolenaar
Patch 7.0.235 Problem:It is possible to use writefile() in the sandbox. Solution: Add a few more checks for the sandbox. Files: src/eval.c *** ../vim-7.0.234/src/eval.c Fri Apr 27 22:17:43 2007 --- src/eval.c Sat Apr 28 21:36:02 2007 *** *** 15598,15603 ---

Re: Syntax error: let a1 = 1 | let b = [1,2,3] | echo b[a1:-1] = Undefined variable a1:

2007-04-29 Thread Bram Moolenaar
Thomas wrote: The following code throws a Undefined variable a1: error: let a1 = 1 | let b = [1,2,3] | echo b[a1:-1] When one puts a blank after a1, it's ok though: let a1 = 1 | let b = [1,2,3] | echo b[a1 : -1] Since a1 is no valid scope and a1: is an illegal variable

Re: Viminfo dictionaries

2007-04-29 Thread Bram Moolenaar
Thomas wrote: Part two in this week's installment of unsolicited comment on vimscript: I also realized that viminfo doesn't save upper case letter variables the values of which are dictionaries. This can be solved by using VimEnter VimLeavePre autocommands and by converting the variable

Re: Syntax error: let a1 = 1 | let b = [1,2,3] | echo b[a1:-1] = Undefined variable a1:

2007-04-29 Thread Thomas
Using : both for scopes and Sublist is not ideal. But it's hard to think of something that is better. Ruby uses .. for this (eg a[2..-1]), which has a mathematical touch. Putting spaces before and after the colon is perfectly ok for me though -- now that I know it.

Re: feedkeys() allowed in sandbox

2007-04-29 Thread Bram Moolenaar
Ciaran McCreesh wrote: On Sat, 28 Apr 2007 21:52:07 +0200 Bram Moolenaar [EMAIL PROTECTED] wrote: I don't like this solution. Opening some files would be OK in the sandbox, e.g., for reading. readfile() would be OK in the sandbox, right? Probably not. In a multi-user environment it

Re: valgrind filetype detection

2007-04-29 Thread Bram Moolenaar
Rodolfo Borges wrote: When opening a valgrind output file, the syntax highlighting was not being automatically turned on. I found that on scripts.vim it's checking for 'valgrind' on the first line, but my version of valgrind (3.2.1 ) prints 'Memcheck' instead. So I fixed it adding the

Re: wish: collaboration of N vim instances editing same file

2007-04-29 Thread Bram Moolenaar
Yakov Lerner wrote: Is it possible to add this item to the vim voting list ?: collaboration of N vim instances editing same file -- Ability of N instances of vim to absorb, merge and show changes to the same file made by other running vim instances [ either by reading other vim's

Re: wish: show search progress on slow searches

2007-04-29 Thread Bram Moolenaar
Yakov Lerner wrote: Wish: when search is slow, show the progress line number every second on the bottom line (like, 12345 of 9). What is slow? Checking if the second passed will make the search even slower. Checking time is quite slow on some systems (the check for CTRL-C suffers from

Re: wish: show search progress on slow searches

2007-04-29 Thread Yakov Lerner
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 line (like, 12345 of 9). What is slow? To my taste, when something takes longer than 1-2 sec, I'd prefer some visual feedback on

Re: wish: collaboration of N vim instances editing same file

2007-04-29 Thread Gregory Seidman
On Sun, Apr 29, 2007 at 10:43:14PM +0200, Bram Moolenaar wrote: Yakov Lerner wrote: Is it possible to add this item to the vim voting list ?: collaboration of N vim instances editing same file -- Ability of N instances of vim to absorb, merge and show changes to the same file

Re: [PATCH] new ex command :lscscope

2007-04-29 Thread Yegappan Lakshmanan
Hi, On 4/28/07, Navdeep Parhar [EMAIL PROTECTED] wrote: Hello, Currently :cscope has a variant :lcscope that allows the use of the location list instead of the quickfix list. However, :scscope has no equivalent that uses the location list. Please note that :scs splits

Re: [PATCH] new ex command :lscscope

2007-04-29 Thread Navdeep Parhar
Hello, --- Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hi, On 4/28/07, Navdeep Parhar [EMAIL PROTECTED] wrote: Hello, Currently :cscope has a variant :lcscope that allows the use of the location list instead of the quickfix list. However, :scscope has no

Re: vim 7.1?

2007-04-29 Thread Ian Tegebo
On 4/28/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Ian Tegebo wrote: On 4/27/07, Bram Moolenaar [EMAIL PROTECTED] wrote: Jonathan Smith wrote: With the insane number of patches collecting against 7.0, and presumably the new features accumulating in the devel tree, is anyone