Vim crashing while starting nibbles game

2007-02-14 Thread Hari Krishna Dara
After I updated the nibbles game, a user reported that his gvim crashes while starting the game. He is using gvim on mandriva linux with patchlevel upto 178. Strangely it doesn't crash on his console vim. I couldn't reproduce the crash on XP and tried with gvim with patchlevels 148 as well as

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: 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: 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 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()

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: Patch 7.0.134

2006-10-16 Thread Hari Krishna Dara
On Mon, 16 Oct 2006 at 9:40pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: On Sun, 15 Oct 2006 at 3:10pm, Bram Moolenaar wrote: Patch 7.0.134 Problem:Crash when comparing a recursively looped List or Dictionary. Solution: Limit recursiveness for comparing to 1000

Re: Patch 7.0.111

2006-10-04 Thread Hari Krishna Dara
On Wed, 4 Oct 2006 at 10:30pm, Bram Moolenaar wrote: Fan Decheng wrote: Bram Moolenaar wrote: Patch 7.0.111 Problem:The gzip plugin can't handle filenames with single quotes. Solution: Add and use the shellescape() function. (partly by Alexey Froloff) Files:

Re: Time to remove naming restrictions?

2006-10-03 Thread Hari Krishna Dara
On Tue, 3 Oct 2006 at 10:30am, A.J.Mechelynck wrote: Nikolai Weibull wrote: On 10/1/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: One thing that really annoys me with Vim is the limits it emposes on what names are legal for user-defined functions and commands.

Re: no winclose event

2006-09-29 Thread Hari Krishna Dara
On Wed, 27 Sep 2006 at 10:07am, Charles E Campbell Jr wrote: Bram Moolenaar wrote: Charles Campbell wrote: Just a suggestion -- I'd appreciate a WinClose event. BufWinLeave would almost do, but if two or more windows are open on the same buffer, then no event. WinLeave fires

Re: Patch 7.0.096

2006-09-12 Thread Hari Krishna Dara
On Tue, 12 Sep 2006 at 1:56pm, A.J.Mechelynck wrote: Hari Krishna Dara wrote: [...] Yes, that is what I am doing. Is fnamemodify() an expensive operation involving OS calls? From the description of what it does, fnamemodify() _seems_ to involve only string manipulation, possibly

Re: Patch 7.0.096

2006-09-11 Thread Hari Krishna Dara
On Mon, 11 Sep 2006 at 6:20pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: On Sun, 10 Sep 2006 at 1:56pm, Bram Moolenaar wrote: Patch 7.0.096 Problem:taglist() returns the filename relative to the tags file, while the directory of the tags file is unknown. (Hari

Re: Patch 7.0.096

2006-09-10 Thread Hari Krishna Dara
On Sun, 10 Sep 2006 at 1:56pm, Bram Moolenaar wrote: Patch 7.0.096 Problem:taglist() returns the filename relative to the tags file, while the directory of the tags file is unknown. (Hari Krishna Dara) Solution: Expand the file name. (Yegappan Lakshmanan) Files

Re: Patch 7.0.098

2006-09-10 Thread Hari Krishna Dara
On Sun, 10 Sep 2006 at 9:07pm, Bram Moolenaar wrote: Patch 7.0.098 Problem:Redirecting command output in a cmdline completion function doesn't work. (Hari Krishna Dara) Solution: Enable redirection when redirection is started. Files:src/ex_docmd.c, src

Re: Patch 7.0.082

2006-09-08 Thread Hari Krishna Dara
On Tue, 5 Sep 2006 at 5:19pm, Hari Krishna Dara wrote: On Mon, 4 Sep 2006 at 9:50pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: I wrote: Patch 7.0.082 Problem:Calling a function that waits for input may cause List and Dictionary arguments

Re: Patch 7.0.082

2006-09-08 Thread Hari Krishna Dara
On Fri, 8 Sep 2006 at 11:11pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: Hmm, now that I think of it you could get problems with a command like this: :echo [1, 2, 3, ..., 2000] If you get the more prompt the garbage collector might delete the list

Re: Patch 7.0.082

2006-09-05 Thread Hari Krishna Dara
On Mon, 4 Sep 2006 at 9:50pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: I wrote: Patch 7.0.082 Problem:Calling a function that waits for input may cause List and Dictionary arguments to be freed by the garbage collector. Solution: Keep a list

Re: buftablist()

2006-09-01 Thread Hari Krishna Dara
On Thu, 31 Aug 2006 at 11:37am, Charles E Campbell Jr wrote: Hello! Is there any interest in a buftablist([optional]) function which would return a list of tab numbers that the optional argument, a buffer number, is in? If no optional argument, then the current buffer would number

Re: scrolloff enhancement wish

2006-07-22 Thread Hari Krishna Dara
On Fri, 21 Jul 2006 at 9:23am, Matthew Winn wrote: On Fri, Jul 21, 2006 at 10:02:10AM +0200, Bram Moolenaar wrote: Yakov Lerner wrote: How about adding the option 'scrollfix' [to the todo.txt], which would fix the cursor on fixed line, in percantage 0-100. Value ':set

Re: I just updated my Vim site

2006-06-06 Thread Hari Krishna Dara
On Mon, 5 Jun 2006 at 9:30pm, A.J.Mechelynck wrote: Hari Krishna Dara wrote: I read your previous emails about your windows laptop being out and that you prefer Linux etc., so I have a suggestion. Why don't you install VMWare virtual server on your Linux box and have windows run just

Re: Bug in CursorMoved?

2006-05-06 Thread Hari Krishna Dara
On Fri, 5 May 2006 at 9:22am, Bram Moolenaar wrote: Hari Krishna Dara wrote: Using Vim 70g, I am seeing a weird problem with CursorMoved autocommand. In a function, I am removing my CursorMoved autocommand, moving the cursor and adding the CursorMoved autocommand back, but the cursor

Re: Feature request: expr for abbreviations

2006-04-20 Thread Hari Krishna Dara
On Thu, 20 Apr 2006 at 1:04pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: In Vim7, I see that maps can now have expr argument to indicate that the RHS is an expression that should be evaluated. I think this is cool, and though I don't have a need yet, I am pretty sure it will come

Re: vim7: request for new autocommands

2006-04-20 Thread Hari Krishna Dara
On Thu, 20 Apr 2006 at 1:04pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: On the lines of InsertEnter and InsertLeave, can we please have CommandEnter and CommandLeave that will get triggered when the user starts one of the :, /, ?, = etc. modes? The reason I ask

Re: netrw needs more keepjumps?

2006-04-20 Thread Hari Krishna Dara
On Thu, 20 Apr 2006 at 9:58am, Charles E Campbell Jr wrote: Hari Krishna Dara wrote: The new version of netrw seems to be a lot better than the old explorer in terms of not corrupting jumplist, but I think there is more work needed. Ideally, when you open a directory, you should see only

Re: netrw 'filetype'

2006-04-13 Thread Hari Krishna Dara
On Thu, 13 Apr 2006 at 4:46pm, Charles E Campbell Jr wrote: Hari Krishna Dara wrote: This is exactly the reason, I didn't suspect this at all. I had netrw in my plugin directory for use with 6.3 Vim. Now, how do I make sure I can use the same plugin directory for both 6.3 and 7.0? I think

Re: netrw 'filetype'

2006-04-13 Thread Hari Krishna Dara
On Thu, 13 Apr 2006 at 2:26pm, Gary Johnson wrote: On 2006-04-13, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Hari Krishna Dara wrote: This is exactly the reason, I didn't suspect this at all. I had netrw in my plugin directory for use with 6.3 Vim. Now, how do I make sure I can

netrw 'filetype'

2006-04-12 Thread Hari Krishna Dara
I am wondering if we can have netrw set the 'ft' of the buffer to 'netrw' at the end of generating the directory listing. I did this for my SelectBuf plugin and find it very useful. This allows users to create filetype plugins and set custom mappings that are local to the netrw buffers. Of