Re: :args reorders arguments

2008-08-22 Fir de Conversatie Ben Schmidt
Gary Johnson wrote: On 2008-08-22, bjrn [EMAIL PROTECTED] wrote: Hi, This may not be the right place for this post, but it seems like I've come across a bug so I am posting here. If I type :args file1.m file1.h file2.m then I expect the arglist to have the file appear in the order I

Re: Right-align vs right-justify documentation?

2008-08-22 Fir de Conversatie Ben Schmidt
John Beckett wrote: Peter Prohaska wrote: :help right-justify There is no command in Vim to right justify text. [...] Justify means to insert variable-width spacing throught the entire line so the left and right margins are aligned. That's how most books and newspaper articles appear.

RE: Right-align vs right-justify documentation?

2008-08-22 Fir de Conversatie John Beckett
Ben Schmidt wrote: Justify means to insert variable-width spacing throughOUt the entire line so the left and right margins are aligned. That's how most books and newspaper articles appear. And 'right justify' sometimes means this too, as it seems it does in the Vim docs, even though it

Re: I am Interested in Bringing Vim to Eclipse

2008-08-22 Fir de Conversatie David Fishburn
On Wed, Aug 13, 2008 at 5:48 AM, John Beckett [EMAIL PROTECTED] wrote: zeeb.v2.3 wrote: I came to the conclusion that I should start a OSS project to develop a proper vim based editor plug-in for Eclipse. I don't know the state of vimplugin, but it is a project led by Sebastian Menge who

Re: Right-align vs right-justify documentation?

2008-08-22 Fir de Conversatie Tony Mechelynck
On 22/08/08 13:34, John Beckett wrote: Ben Schmidt wrote: Justify means to insert variable-width spacing throughOUt the entire line so the left and right margins are aligned. That's how most books and newspaper articles appear. And 'right justify' sometimes means this too, as it seems it

Re: Bug with v_K and potentially K command

2008-08-22 Fir de Conversatie Tony Mechelynck
On 22/08/08 13:37, Jan Minář wrote: Hi! Thanks again to Ben for reporting this. It's not just the K command. TheC-] and g] commands are vulnerable too. Patch attached. Attack vectors: (1) K -- arbitrary shell command execution via additional shell commands

Folding with close of fold on same line as open of next fold

2008-08-22 Fir de Conversatie Ben Fritz
Consider the text: {{{1 }}} {{{1 }}} With :set fdm=marker foldcolumn=4, we get: - {{{1 | - }}} {{{1 | | }}} This is fairly intuitive. For this ismple example, I would expect this to work in the same way (intuitively, not necessarily because of the documentation, which is vague on what

Re: Folding with close of fold on same line as open of next fold

2008-08-22 Fir de Conversatie Ben Fritz
On Aug 22, 12:09 pm, Ben Fritz [EMAIL PROTECTED] wrote: Consider the text: {{{1 }}} {{{1 }}} With :set fdm=marker foldcolumn=4, we get: -   {{{1 | -   }}} {{{1 | |   }}} This is fairly intuitive. For this ismple example, I would expect this to work in the same way (intuitively,

Re: Right-align vs right-justify documentation?

2008-08-22 Fir de Conversatie Teemu Likonen
Tony Mechelynck wrote (2008-08-22 16:10 +0200): Vim isn't able to add variable numbers of spaces between words to make the text come out justified (i.e., flush on both margins). It might, in some cases, be possible to justify monospace text this way by means of a script, but is it worth it?

Re: Bug with v_K and potentially K command

2008-08-22 Fir de Conversatie Bram Moolenaar
Jan Minar wrote: Thanks again to Ben for reporting this. It's not just the K command. The C-] and g] commands are vulnerable too. Patch attached. Attack vectors: (1) K -- arbitrary shell command execution via additional shell commands (insufficient sanitization of a

Re: Bug with v_K and potentially K command

2008-08-22 Fir de Conversatie Jan Minář
Thanks. I'll have a good look at it later. One thing I noticed: you don't need to give an error message for running out of memory at this level, it's already done at a lower level in alloc(). There it also That's what I thought, too. But vim_strsave_shellescape() is documented to return

Re: Bug with v_K and potentially K command

2008-08-22 Fir de Conversatie Bram Moolenaar
Jan Minar wrote: Thanks. I'll have a good look at it later. One thing I noticed: you don't need to give an error message for running out of memory at this level, it's already done at a lower level in alloc(). There it also That's what I thought, too. But vim_strsave_shellescape()

Re: Bug with v_K and potentially K command

2008-08-22 Fir de Conversatie Tony Mechelynck
On 22/08/08 21:20, Jan Minář wrote: Thanks. I'll have a good look at it later. One thing I noticed: you don't need to give an error message for running out of memory at this level, it's already done at a lower level in alloc(). There it also That's what I thought, too. But

Re: Bug with v_K and potentially K command

2008-08-22 Fir de Conversatie Matt Wozniski
On Fri, Aug 22, 2008 at 6:41 PM, Tony Mechelynck wrote: On 22/08/08 21:20, Jan Minář wrote: Thanks. I'll have a good look at it later. One thing I noticed: you don't need to give an error message for running out of memory at this level, it's already done at a lower level in alloc(). There

RE: Bug with v_K and potentially K command

2008-08-22 Fir de Conversatie John Beckett
Tony Mechelynck wrote: Maybe you should set a config-time option (or create one) to avoid any interaction with the shell? Even better: If you don't want ever to become the victim of any exploit, turn your computer off at the wall switch and leave it off. :-b I haven't studied this

Re: Right-align vs right-justify documentation?

2008-08-22 Fir de Conversatie Ben Schmidt
The terms left align and right align are often used as alternatives to flush left and flush right, but where I was, align referred to blocks like tables, diagrams, or a block of text. Mmm. I think that's still the case in DTP circles--alignment refers to the relationship between objects on a