Re: escape() and '

2006-10-24 Thread Mikolaj Machowski
Dnia poniedziałek, 23 października 2006 16:25, Nikolai Weibull napisał: On 10/23/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Hello, I understand that escape() was primarily designed to escape strings when passing to system functions, but personally I never used that and in didn't

Re: escape() and '

2006-10-24 Thread Nikolai Weibull
On 10/23/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Dnia poniedziałek, 23 października 2006 16:25, Nikolai Weibull napisał: I'll take your word for it that that means that I wrote something at some time or other. There should really be a third, optional, parameter to escape() where

Re: missing setbufline()?

2006-10-24 Thread Bram Moolenaar
Yegappan Lakshmanan wrote: On 10/23/06, Bram Moolenaar [EMAIL PROTECTED] wrote: You can try the attached patch against the latest Vim7 sources. The syntax of the new function is: setbufline({expr}, {lnum}, {line}) where, {expr} specifies the loaded buffer

Re: unsychronized vimdiff panes

2006-10-24 Thread Bram Moolenaar
Yakov Lerner wrote: On 10/23/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yakov Lerner wrote: In vimdiff mode, when you resize xterm vertically, 2 panes become desynchronized, and stay desynchronized until you press an arrow key. The active pane is repositioned according to

Patch 7.0.148

2006-10-24 Thread Bram Moolenaar
Patch 7.0.148 Problem:When doing call a.xyz() and xyz does not exist in dictionary a there is no error message. (Yegappan Lakshmanan) Solution: Add the error message. Files: src/eval.c *** ../vim-7.0.147/src/eval.c Tue Oct 17 15:17:41 2006 --- src/eval.c Tue Oct 24

Patch 7.0.150

2006-10-24 Thread Bram Moolenaar
Patch 7.0.150 Problem:When resizing the Vim window scrollbinding doesn't work. (Yakov Lerner) Solution: Do scrollbinding in set_shellsize(). Files: src/term.c *** ../vim-7.0.149/src/term.c Wed Aug 16 21:42:34 2006 --- src/term.c Tue Oct 24 11:26:33 2006

Re: escape() and '

2006-10-24 Thread Mikolaj Machowski
Dnia wtorek, 24 października 2006 11:10, Nikolai Weibull napisał: Oh, I see. You're thinking of creating a string for passing to substitute() inside an :execute, or something like that. Ah, true, then you'd need to escape the single-quotes for the string, and, e.g., . with \.. Escaping is a

Re: List of encodings and aliases

2006-10-24 Thread Bram Moolenaar
Tony Mechelynck wrote: I fell by chance on http://www.iana.org/assignments/character-sets , the official list of character set names and aliases allowable on the Internet. Only names (with their aliases) are listed there, with bibliographical links to various sources. Maybe that URI

Patch 7.0.152

2006-10-24 Thread Bram Moolenaar
Patch 7.0.152 Problem:Crash when using lesstif 2. Solution: Fill in the extension field. (Ben Hutchings) Files: src/gui_xmebw.c *** ../vim-7.0.151/src/gui_xmebw.c Sat May 13 17:26:10 2006 --- src/gui_xmebw.c Tue Oct 24 22:27:53 2006 *** *** 138,143 ---

Re: escape() and '

2006-10-24 Thread Hari Krishna Dara
On Mon, 23 Oct 2006 at 12:51pm, Mikolaj Machowski wrote: Hello, I understand that escape() was primarily designed to escape strings when passing to system functions, but personally I never used that and in didn't noticed such use in various scripts but very often it is used to escape

Re: escape() and '

2006-10-24 Thread Nikolai Weibull
On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: :echo escape('as''df', ) I didn't even know that you can escape a single-quote inside single-quotes like this, where is this information burried in Vim help? It seems to work though, so just checking if it is documented. It's

Re: containedin can't include clusters

2006-10-24 Thread Peter Hodge
--- Nikolai Weibull [EMAIL PROTECTED] wrote: I figured that it was easier to add items to a cluster using containedin= for a syntax definition I'm writing, but it seems that one can't do it that way. Is there a reason for this, or is it an oversight? Can we add this to the todo? I've

Re: escape() and '

2006-10-24 Thread Hari Krishna Dara
On Tue, 24 Oct 2006 at 11:10am, Nikolai Weibull wrote: There should really be a third, optional, parameter to escape() where you can specify what character to use for escaping. That wouldn't be real solution because to escape ' you still (in most situations) would need two escape()

question about vim buffer write to file

2006-10-24 Thread Ming Lei
Hi, I have a basic question about vim internal. Let me use an example to describe: Say I have a text file of 20Mbytes. I use VIM to insert 3 characters at offset 1024 bytes from the beginning of the file and then I save the file. My question is: how does VIM handle the file write and save? Does

Re: Calling a non-existing dictionary function doesn't result in an error

2006-10-24 Thread Hari Krishna Dara
On Mon, 23 Oct 2006 at 5:16pm, Yegappan Lakshmanan wrote: Hi all, When a non-existing dictionary function is invoked using the :call command, there is no error. But when it is used in an expression, an error message is displayed. Is this the expected behavior? let a = {} call

Re: question about vim buffer write to file

2006-10-24 Thread Matthew Woehlke
Ming Lei wrote: I have a basic question about vim internal. Let me use an example to describe: Say I have a text file of 20Mbytes. I use VIM to insert 3 characters at offset 1024 bytes from the beginning of the file and then I save the file. My question is: how does VIM handle the file write

Re: List of encodings and aliases

2006-10-24 Thread A.J.Mechelynck
Bram Moolenaar wrote: Tony Mechelynck wrote: I fell by chance on http://www.iana.org/assignments/character-sets , the official list of character set names and aliases allowable on the Internet. Only names (with their aliases) are listed there, with bibliographical links to various sources.

Re: question about vim buffer write to file

2006-10-24 Thread A.J.Mechelynck
Matthew Woehlke wrote: Ming Lei wrote: I have a basic question about vim internal. Let me use an example to describe: Say I have a text file of 20Mbytes. I use VIM to insert 3 characters at offset 1024 bytes from the beginning of the file and then I save the file. My question is: how does VIM