Re: escape() and '

2006-10-23 Thread A.J.Mechelynck
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 various charaters in Vim's own regexp

Re: escape() and '

2006-10-23 Thread Nikolai Weibull
On 10/23/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: 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

Re: escape() and '

2006-10-23 Thread Yakov Lerner
On 10/23/06, Nikolai Weibull [EMAIL PROTECTED] wrote: 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 noticed such use in

[PATCH] zip plugin: support any filename

2006-10-23 Thread tobutaz
Hello, I've made a small fix to vim's zip plugin. Before the patch, the plugin could only edit filenames with the zip extension. When using an autoloadcmd to open jars, the files would be edited correctly, but they would be saved at the wrong place, and would be ignored when opening the archive

Re: missing setbufline()?

2006-10-23 Thread Yegappan Lakshmanan
Hi Bram, On 10/23/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Yegappan Lakshmanan wrote: On 10/22/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On 10/22/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: I see functions for creating new unlisted buffers (bufnr() with {create}

Re: [PATCH] zip plugin: support any filename

2006-10-23 Thread Martin Stubenschrott
On Mon, Oct 23, 2006 at 10:02:48PM +0200, [EMAIL PROTECTED] wrote: I'm using this to edit firefox extensions directly inside their jar files. I'm also attaching a patch that adds the required associations (jar and xpi, I'm sure there are more). I exactly wanted to do the same, but it didn't

Re: missing setbufline()?

2006-10-23 Thread Bram Moolenaar
Yegappan Lakshmanan wrote: On 10/22/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On 10/22/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: I see functions for creating new unlisted buffers (bufnr() with {create} option), and for reading the lines from the buffer

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

2006-10-23 Thread Yegappan Lakshmanan
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 a.xyz() The :call command silently returns without any errors. But the

Re: [PATCH] zip plugin: support any filename

2006-10-23 Thread Benji Fisher
On Mon, Oct 23, 2006 at 10:42:41PM +0200, Martin Stubenschrott wrote: On Mon, Oct 23, 2006 at 10:02:48PM +0200, [EMAIL PROTECTED] wrote: I'm using this to edit firefox extensions directly inside their jar files. I'm also attaching a patch that adds the required associations (jar and xpi,

Re: Quickfix behaviour

2006-10-23 Thread Marius Roets
On 10/20/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: The above problem with the quickfix window and the 'switchbuf' option set to 'usetab' is now fixed by patch 7.0.146. - Yegappan This works perfectly now. Thanks a million. Marius

what are blue signs appearing in vimdiff panes ?

2006-10-23 Thread Yakov Lerner
http://xs308.xs.to/xs308/06431/screenshot.png If you look at lines 879-884 of the left pane, and lines 1583-1588 of the right pane you can see blue signs near line numbers. What do they signify ? I just did vimdiff and no special options. What do they mean, those spooky signs, in the middle of

lines modified in the buffer

2006-10-23 Thread Yakov Lerner
Is there any plugin that marks with signs lines modifies in the buffer ? Yakov

Re: Need help about 3 questions

2006-10-23 Thread A.J.Mechelynck
Raymond wrote: Hello all, I'm new to Vim, now i'm using GVim 7.0 on Windows system. Here is my questions. [...] 2. Now I know how to install *.vim plugin. Then I encounter VISINCR.VBA plugin (http://www.vim.org/scripts/script.php?script_id=670). How to install this kind of *.vba plugin?

Re: what are blue signs appearing in vimdiff panes ?

2006-10-23 Thread Jean-Rene David
* Yakov Lerner [2006.10.23 07:00]: If you look at lines 879-884 of the left pane, and lines 1583-1588 of the right pane you can see blue signs near line numbers. What do they signify ? They mean those lines are an open diff fold. I just did vimdiff and no special options. What do they

Changing omnicomplete lifetime?

2006-10-23 Thread Bill Mill
Hello, I love python omnicomplete for vim. However, I'd like to change its behavior a bit in a way that I'm not sure is even possible. When I type: cherrypy.^x^or , the menu pops up with cherrypy options, then gets limited to those starting with r. However, if I follow that with a backspace,

want :move to keep position

2006-10-23 Thread Yakov Lerner
How can I make :move command keep position ? By default, it moves to the target line. I want it to remain where I was. I made my :M command that does it, but how do I remap m command to behave like my M ? Thanks Yakov

Re: GNU Screen and Vim

2006-10-23 Thread Fabien Meghazi
I uses screen under rxvt-unicode, in my .vimrc, I map the Shift-Up key combination like this: noremap ^[[a zc As soon as I'm under screen it doesn't work anymore. Found the reason why my keymapping doesn't work with vim under screen. I guess vim interprets the escape sequence differently

Re: missing setbufline()?

2006-10-23 Thread Yegappan Lakshmanan
Hi Hari, On 10/22/06, Yegappan Lakshmanan [EMAIL PROTECTED] wrote: Hi Hari, On 10/22/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On 10/22/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: I see functions for creating new unlisted buffers (bufnr() with {create} option), and for

Re: Bug: CursorHoldI not triggered after startinsert

2006-10-23 Thread Bram Moolenaar
Hari Krishna Dara wrote: I am using :startinsert! from my plugin to put the user in insert mode, but if the user doesn't type anything for 'updatetime' after this, no CursorHoldI event is generated. I tried doing an explicit :doauto right after :startinsert!, but Vim ignores it, probably

Re: missing setbufline()?

2006-10-23 Thread Bram Moolenaar
Yegappan Lakshmanan wrote: On 10/22/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On 10/22/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: I see functions for creating new unlisted buffers (bufnr() with {create} option), and for reading the lines from the buffer using

BUG: mksession saves lcd in incorrect place

2006-10-23 Thread Marius Roets
Hi everybody, I believe I have found a bug in Vim 7.0.146, relating to mksession and lcd. Here is a small example. 1) Open Vim 2) :e file1.txt 3) :tabe temp/file2.txt Any different directory 4) :lcd %:h 5) :mks test.vim 6) Close vim 7) Open vim 8) :source test.vim 9) The second tab is empty. The

Re: Changing omnicomplete lifetime?

2006-10-23 Thread Mikolaj Machowski
Dnia poniedziałek, 23 października 2006 15:18, Bill Mill napisał: How would you recommend getting this to work? Should I try and edit supertab? Is there an easy way to change it? Maybe try to change 'completeopt' value. longest option? m.

Re: Changing omnicomplete lifetime?

2006-10-23 Thread Bill Mill
On 10/23/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Dnia poniedziałek, 23 października 2006 15:18, Bill Mill napisał: How would you recommend getting this to work? Should I try and edit supertab? Is there an easy way to change it? Maybe try to change 'completeopt' value. longest option?

Re: GNU Screen and Vim

2006-10-23 Thread A.J.Mechelynck
Fabien Meghazi wrote: I uses screen under rxvt-unicode, in my .vimrc, I map the Shift-Up key combination like this: noremap ^[[a zc As soon as I'm under screen it doesn't work anymore. Found the reason why my keymapping doesn't work with vim under screen. I guess vim interprets the escape

Only curiosity: Optimizing a vimtip (modified)

2006-10-23 Thread Meino Christian Cramer
Hi, I read of a vimtip, that one can move/copy lines of a text which match a cvertina pattern to line 0 (top) of the text. This is a nice trick to gather material for a kinda quick'n'dirty Table of contents it has one drwaback: The copied lines are in reversed order. Surely it is possible

Re: Bug: CursorHoldI not triggered after startinsert

2006-10-23 Thread Hari Krishna Dara
On Mon, 23 Oct 2006 at 9:25pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: I am using :startinsert! from my plugin to put the user in insert mode, but if the user doesn't type anything for 'updatetime' after this, no CursorHoldI event is generated. I tried doing an explicit :doauto