patch: set() function

2006-10-25 Thread Hari Krishna Dara
Here is a patch that adds set() function on the lines of existing get() for setting list elements by index or dict keys by name. The reason I wanted this is the lack of support to use :let for modifying the dictionary elements. E.g., the below will be an error: :let get_dict().key = 'val' The

Re: escape() and '

2006-10-25 Thread Nikolai Weibull
On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: '\V'.escape(substitute(regex, ', '', 'g'), '\') Uh, when did Vim's strings become objects? (Would be really nice if they were, mind you.) nikolai

Re: escape() and '

2006-10-25 Thread Nikolai Weibull
On 10/25/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: '\V'.escape(substitute(regex, ', '', 'g'), '\') Uh, when did Vim's strings become objects? (Would be really nice if they were, mind you.) Ahahaha, OK. Sorry. Goddam I hate the

Re: containedin can't include clusters

2006-10-25 Thread Nikolai Weibull
On 10/25/06, Peter Hodge [EMAIL PROTECTED] wrote: --- 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

Re: containedin can't include clusters

2006-10-25 Thread Nikolai Weibull
On 10/25/06, Peter Hodge [EMAIL PROTECTED] wrote: --- Nikolai Weibull [EMAIL PROTECTED] wrote: On 10/25/06, Peter Hodge [EMAIL PROTECTED] wrote: --- Nikolai Weibull [EMAIL PROTECTED] wrote: I figured that it was easier to add items to a cluster using containedin= for a syntax

Re: patch: set() function

2006-10-25 Thread Hari Krishna Dara
On Wed, 25 Oct 2006 at 9:16am, Nikolai Weibull wrote: On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: Here is a patch that adds set() function on the lines of existing get() for setting list elements by index or dict keys by name. The reason I wanted this is the lack of support

Re: patch: set() function

2006-10-25 Thread G. Sumner Hayes
Hari Krishna Dara [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: Hari Krishna Dara [EMAIL PROTECTED] wrote: Here is a patch that adds set() function on the lines of existing get() for setting list elements by index or dict keys by name. [SNIP] Wouldn't it be better to allow the

Re: question about vim buffer write to file

2006-10-25 Thread Bram Moolenaar
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

Re: patch: set() function

2006-10-25 Thread Bram Moolenaar
Hari Krishna Dara wrote: On Wed, 25 Oct 2006 at 9:16am, Nikolai Weibull wrote: On 10/25/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: Here is a patch that adds set() function on the lines of existing get() for setting list elements by index or dict keys by name. The reason I

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-25 Thread Ilya Sher
A.J.Mechelynck wrote: Ilya Sher wrote: A.J.Mechelynck wrote: Alexey I. Froloff wrote: * Bram Moolenaar Bram@ [061022 17:41]: I don't want to support that, because it causes mistakes. Consider being in Insert mode and typing Esc o to open a new line or Esc n to find the next match. A