Re: A small VIM patch

2006-10-17 Thread Bram Moolenaar
Martti Kuparinen wrote: Please apply the attached patch to remove an invalid usage of the test command. I have tested this against VIM 7.0.121 in NetBSD pkgsrc. Thanks for the fix! -- hundred-and-one symptoms of being an internet addict: 49. You never have to deal with busy signals when

Patch 7.0.138 (extra)

2006-10-17 Thread Bram Moolenaar
Patch 7.0.138 (extra) Problem:Mac: modifiers don't work with function keys. Solution: Use GetEventParameter() to obtain modifiers. (Nicolas Weber) Files: src/gui_mac.c *** ../vim-7.0.137/src/gui_mac.cTue Aug 22 21:39:18 2006 --- src/gui_mac.c Sun Oct 15 14:53:38 2006

Patch 7.0.139

2006-10-17 Thread Bram Moolenaar
Patch 7.0.139 Problem:Using CTRL-PageUp or CTRL-PageDown in Insert mode to go to another tab page does not prepare for undo properly. (Stefano Zacchiroli) Solution: Call start_arrow() before switching tab page. Files: src/edit.c *** ../vim-7.0.138/src/edit.c Sat Oct 14

Re: Patch 7.0.139

2006-10-17 Thread Stefano Zacchiroli
On Tue, Oct 17, 2006 at 01:40:04PM +0200, Bram Moolenaar wrote: Patch 7.0.139 Problem:Using CTRL-PageUp or CTRL-PageDown in Insert mode to go to another tab page does not prepare for undo properly. (Stefano Zacchiroli) Solution: Call start_arrow() before switching tab page.

Re: Patch 7.0.138 (extra)

2006-10-17 Thread Nicolas Weber
Hi, Patch 7.0.138 (extra) Problem:Mac: modifiers don't work with function keys. Solution: Use GetEventParameter() to obtain modifiers. (Nicolas Weber) Files: src/gui_mac.c thanks for including this. Sadly, I just found another problem caused by this patch: Mappings on

Patch 7.0.141

2006-10-17 Thread Bram Moolenaar
Patch 7.0.141 Problem:When pasting a while line on the command line an extra CR is added literally. Solution: Don't add the trailing CR when pasting with the mouse. Files: src/ex_getln.c, src/proto/ops.pro, src/ops.c *** ../vim-7.0.140/src/ex_getln.c Thu Sep 14

Patch 7.0.142

2006-10-17 Thread Bram Moolenaar
Patch 7.0.142 Problem:Using the middle mouse button in Select mode to paste text results in an extra y. (Kriton Kyrimis) Solution: Let the middle mouse button replace the selected text with the contents of the clipboard. Files: src/normal.c ***

Patch 7.0.143

2006-10-17 Thread Bram Moolenaar
Patch 7.0.143 Problem:Setting 'scroll' to its default value was not handled correctly. Solution: Compare the right field to PV_SCROLL. Files: src/option.c *** ../vim-7.0.142/src/option.c Tue Oct 10 18:43:50 2006 --- src/option.cTue Oct 17 17:29:09 2006 *** ***

Patch 7.0.144

2006-10-17 Thread Bram Moolenaar
Patch 7.0.144 Problem:May compare two unrelated pointers when matching a pattern against a string. (Dominique Pelle) Solution: Avoid calling reg_getline() when REG_MULTI is false. Files: src/regexp.c *** ../vim-7.0.143/src/regexp.c Tue Aug 29 17:28:56 2006 ---

Backup file (with ~ ) on rsync server

2006-10-17 Thread A.J.Mechelynck
I notice that (a few seconds ago) the file runtime/tutor/tutor.gr.utf8 on the rsync server is accompanied by a tutor.gr.utf8~ -- I suppose the latter can be removed? Best regards, Tony.

Re: (oops) Backup file (with ~ ) on rsync server

2006-10-17 Thread A.J.Mechelynck
A.J.Mechelynck wrote: I notice that (a few seconds ago) the file runtime/tutor/tutor.gr.utf8 on the rsync server is accompanied by a tutor.gr.utf8~ -- I suppose the latter can be removed? Best regards, Tony. oops: .utf-8 and .utf-8~ Bet regards, Tony.

Patch 7.0.145

2006-10-17 Thread Bram Moolenaar
Patch 7.0.145 (after 7.0.142) Problem:Compiler warning. Solution: Add type cast. Files: src/normal.c *** ../vim-7.0.144/src/normal.c Tue Oct 17 16:55:47 2006 --- src/normal.cTue Oct 17 22:37:42 2006 *** *** 2387,2393 if (VIsual_select)

Re: Backup file (with ~ ) on rsync server

2006-10-17 Thread Bram Moolenaar
Tony Mechelynck wrote: I notice that (a few seconds ago) the file runtime/tutor/tutor.gr.utf8 on the rsync server is accompanied by a tutor.gr.utf8~ -- I suppose the latter can be removed? I'll remove it. -- Q: Should I clean my house or work on Vim? A: Whatever contains more bugs. ///

svn vs rsync vs ftp

2006-10-17 Thread Yakov Lerner
Of different current methods to access vim sources (svn, ftp, rsync, etc) which one is fastest to be updated when new patch is issued, and also has most reliable/fast server ? Yakov

Re: vim and 64bit xp

2006-10-17 Thread A.J.Mechelynck
Doug Cook wrote: Shell extensions are very specific to a particular bitness of Windows. -- 32-bit DLLs can only load into 32-bit processes. -- 64-bit DLLs can only load into 64-bit processes. The default shell for Win64 is the 64-bit version of explorer.exe (this is configurable), and it will

Re: svn vs rsync vs ftp

2006-10-17 Thread Bill McCarthy
On Tue 17-Oct-06 4:04pm -0600, Yakov Lerner wrote: Of different current methods to access vim sources (svn, ftp, rsync, etc) which one is fastest to be updated when new patch is issued, and also has most reliable/fast server ? I wasn't aware that sources were on FTP. Where are they? Patches

Re: substitude, write and close with one command

2006-10-17 Thread Tomas Lovetinsky
Peter Hodge napsal(a): --- Tomas Lovetinsky [EMAIL PROTECTED] wrote: Hi, I would like to ask you for help with my problem. I think it is simple but in fact I'm not able to find the solution as quickly as I need. I need to do sometink like :s/a/b/g :wq It means to substitute, write and close

Re: How to find a file.

2006-10-17 Thread Peter Hodge
--- Zheng Da [EMAIL PROTECTED] wrote: Hello. I want to open a file, and I know its name, but don't know the path. I want to use the command find. For example I want to open the file space.cc, and use the command :find space.cc. I know the file may be in the current directory, or the

Re: Cannot compile vim 7.0

2006-10-17 Thread Vigil
Perhaps X is not fully installed. On Mon, 16 Oct 2006, Anne Wall wrote: /usr/include/Xm/Xm.h:42:34: X11/extensions/Print.h: No such file or directory -- .

Contextual 'iskeyword'?

2006-10-17 Thread Tim Chase
In some text, I've got compound words separated by a single hyphen. For convenience of yanking, I've added the hyphen to my iskeyword setting which works nicely for the most part. However, I also use a doubled-hyphen to the effect one would use an em-dash which leads to the unwanted

RE: Contextual 'iskeyword'?

2006-10-17 Thread Zdenek Sekera
-Original Message- From: Benji Fisher [mailto:[EMAIL PROTECTED] Sent: 17 October 2006 15:03 To: Vim users Subject: Re: Contextual 'iskeyword'? On Tue, Oct 17, 2006 at 05:43:08AM -0500, Tim Chase wrote: In some text, I've got compound words separated by a single hyphen. For

RE: Cannot compile vim 7.0

2006-10-17 Thread Anne Wall
Do you mean X Windows? Motif? We're running X Windows, and it seems like it has no problems. How would I tell if that's the problem? Do I need to reinstall X Windows to get vim to compile? {shudder} -Original Message- From: Vigil [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 17, 2006

RE: Cannot compile vim 7.0

2006-10-17 Thread Anne Wall
I guess I don't really have to recompile it; I just couldn't find any more recent binary than 6.3 for my platform, and I thought, as long as I'm trying to get it to run, I should do the best install I could. We already have a binary of 6.1, and one of our users complains that he has some problems

RE: replace using variable

2006-10-17 Thread Gene Kwiecinski
p1. I am good/p p2. You sucks!/p p3. Take that, moron/p I want to change those sentences into: p id=11. I am good/p p id=22. You sucks!/p p id=33. Take that, moron/p How do I do that using vim replace command? All I can think is this: :%s/p\d/p id=\d\d/igc Me personally? I'd do something like

RE: replace using variable

2006-10-17 Thread Gene Kwiecinski
Hi, I have these words: p1. I am good/p p2. You sucks!/p p3. Take that, moron/p P.S. If you are feeling frustrated (Vim can do that to you), try writing something more soothing, e.g.: p1. I am happy/p p2. You are beautiful!/p p3. Take that, as a token of my love/p Heh, I thought his

Re: problem compiling vim70.

2006-10-17 Thread Gary Johnson
On 2006-10-16, Ajay Gupta [EMAIL PROTECTED] wrote: Hello all, I am trying to compile vim70 on my 'newly installed' fc4 box. But I get the following error: snip checking for stack_t... (cached) yes checking whether stack_t has an ss_base field... no checking --with-tlib argument...

Re: Cannot compile vim 7.0

2006-10-17 Thread A.J.Mechelynck
Anne Wall wrote: I couldn't find any more recent binaries than 6.3, but I did find the RPMs for that, so I installed it, and the populace is happy and peaceful. Thanks for your help! I'm grateful for your kind advice. I was under some wrong impressions, especially thinking it's important to

RE: Cannot compile vim 7.0

2006-10-17 Thread Anne Wall
Oh mah gah. That's the best. You've really encapsulated the whole deal here. Thank you, because that's pretty excellent. I already knew that there were about 132 patches for vim, and I optimistically applied every single one before trying the install the first time. That in itself was a bit

search visual block

2006-10-17 Thread Lev Lvovsky
Is it possible to search for a string by selecting that string in visual mode? Meaning, if I highlight something, and then want to search for that thing which is highlighted in the rest of the doc? otherwise, is there a way to copy that string so that I can later put it into the :/

Re: Cannot compile vim 7.0

2006-10-17 Thread A.J.Mechelynck
Anne Wall wrote: Oh mah gah. That's the best. You've really encapsulated the whole deal here. Thank you, because that's pretty excellent. Thanks for the compliment; I used to be a teacher. I already knew that there were about 132 patches for vim, and I optimistically applied every single

Re: Contextual 'iskeyword'?

2006-10-17 Thread Tim Chase
Let's think big and look for a generic solution. IMHO, it is way too restrictive to insist that a word is anything matching the pattern /\k\+/ . I want a new option, 'wordpat', with a default value of '\k\+', that specifies what should be recognized as a word, for purposes of search

Re: search visual block

2006-10-17 Thread Bill McCarthy
On Tue 17-Oct-06 4:03pm -0600, Lev Lvovsky wrote: Is it possible to search for a string by selecting that string in visual mode? Meaning, if I highlight something, and then want to search for that thing which is highlighted in the rest of the doc? You can do this with a visual map:

www.vim.org down?

2006-10-17 Thread Preben Randhol
Hi I get a blank page when I go to www.vim.org. If I go to vim.sf.net I get the vim pages. A problem with the alias? Preben

Re: Slightly OT: HELP! IDE ahead !

2006-10-17 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, Is it possible to convince kdevelop from using vim? I searched the web but the only source of information I found was of kvim -- and its homepage isn't there anymore. Any ideas? Thank you very much in advanve for any help! Keep hacking! mcc

Re: www.vim.org down? - surf to vim.sf.net

2006-10-17 Thread Sven Guckes
* Preben Randhol [EMAIL PROTECTED] [2006-10-18 00:30]: I get a blank page when I go to www.vim.org. If I go to vim.sf.net I get the vim pages. A problem with the alias? something like that - yes. the powers that be have been alerted. please stay calm. in the meantime please surf to

Using Ctrl-] to tag on a filename

2006-10-17 Thread David Thompson
Does vim support a special type of 'iskeyword' setting for Ctrl-] searching for tags? Here is my problem: after adding filenames to my tags file, I now want to use the convenience of Ctrl-] to jump to files as well as identifiers. For example, positioning the cursor on defines.h and pressing

Re: Contextual 'iskeyword'?

2006-10-17 Thread A.J.Mechelynck
Tim Chase wrote: In some text, I've got compound words separated by a single hyphen. For convenience of yanking, I've added the hyphen to my iskeyword setting which works nicely for the most part. However, I also use a doubled-hyphen to the effect one would use an em-dash which leads to the

Re: search visual block

2006-10-17 Thread David Thompson
--- Lev Lvovsky [EMAIL PROTECTED] wrote: Is it possible to search for a string by selecting that string in visual mode? Meaning, if I highlight something, and then want to search for that thing which is highlighted in the rest of the doc? Why go to the trouble of highlighting it? Have

Re: search visual block

2006-10-17 Thread David Thompson
--- David Thompson [EMAIL PROTECTED] wrote: --- Lev Lvovsky [EMAIL PROTECTED] wrote: Is it possible to search for a string by selecting that string in visual mode? Meaning, if I highlight something, and then want to search for that thing which is highlighted in the rest of the doc?

Re: search visual block

2006-10-17 Thread Lev Lvovsky
On Oct 17, 2006, at 4:36 PM, David Thompson wrote: Why go to the trouble of highlighting it? Have you discovered the * key? Just press the * key while in normal mode and vim searches for the word under the cursor. I have indeed, very useful, however this is for multiple words separated by

RE: search visual block

2006-10-17 Thread Max Dyckhoff
From :help visual-operators Note that the :vmap command can be used to specifically map keys in Visual mode. For example, if you would like the / command not to extend the Visual area, but instead take the highlighted text and search for that: :vmap / y/C-RCR I would suggest not

Re: www.vim.org down?

2006-10-17 Thread panshizhu
Preben Randhol [EMAIL PROTECTED] 写于 2006-10-18 06:23:20: Hi I get a blank page when I go to www.vim.org. If I go to vim.sf.net I get the vim pages. A problem with the alias? Preben I don't think it is happen recently. During the past two years I'd never sucess in visiting www.vim.org,

RE: Using Ctrl-] to tag on a filename

2006-10-17 Thread David Thompson
--- Max Dyckhoff [EMAIL PROTECTED] wrote: --- David Thompson [mailto:[EMAIL PROTECTED] wrote: Does vim support a special type of 'iskeyword' setting for Ctrl-] searching for tags? Here is my problem: after adding filenames to my tags file, I now want to use the convenience of Ctrl-] to

Re: Contextual 'iskeyword'?

2006-10-17 Thread Peter Hodge
--- Benji Fisher [EMAIL PROTECTED] wrote: On Tue, Oct 17, 2006 at 05:43:08AM -0500, Tim Chase wrote: In some text, I've got compound words separated by a single hyphen. For convenience of yanking, I've added the hyphen to my iskeyword setting which works nicely for the most part.

Re: search visual block

2006-10-17 Thread Jean-Rene David
* Lev Lvovsky [2006.10.17 17:15]: Is it possible to search for a string by selecting that string in visual mode? Meaning, if I highlight something, and then want to search for that thing which is highlighted in the rest of the doc? You already got lots of good answers. Here's another one.

split vertically at a tag

2006-10-17 Thread Kamaraju Kusumanchi
If I do ctrl-W ctrl-] in normal mode, vim splits the current window horizontally. Is there any way to achieve the same functionality but with window being split vertically instead of horizontally? thanks raju

Re: split vertically at a tag

2006-10-17 Thread A.J.Mechelynck
Kamaraju Kusumanchi wrote: If I do ctrl-W ctrl-] in normal mode, vim splits the current window horizontally. Is there any way to achieve the same functionality but with window being split vertically instead of horizontally? thanks raju If any ex-command splits a window

Re: Slightly OT: HELP! IDE ahead !

2006-10-17 Thread Meino Christian Cramer
From: A.J.Mechelynck [EMAIL PROTECTED] Subject: Re: Slightly OT: HELP! IDE ahead ! Date: Wed, 18 Oct 2006 00:51:50 +0200 Meino Christian Cramer wrote: Hi, Is it possible to convince kdevelop from using vim? I searched the web but the only source of information I found was of

Re: Slightly OT: HELP! IDE ahead !

2006-10-17 Thread A.J.Mechelynck
Meino Christian Cramer wrote: [...] My company plans to unify the use of tools. Kdevelop for all! Top down analysis for the masses! Ok, I will not comment on this. For me it is more important to have unified code styles, tab spaces and so on instead of the same editor to produce the

Re: Slightly OT: HELP! IDE ahead !

2006-10-17 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: [...] Hi, Sorry for my ignorance but I've never heard of kvim before. Is it a Vim implementation with Qt GUI? I see from Vim source of no evidence of that. It does not seemed to be available in Official Vim 7.0 source. (No Qt or KDE option for GUI selection in the

Re: split vertically at a tag

2006-10-17 Thread David Thompson
--- A.J.Mechelynck [EMAIL PROTECTED] wrote: If any ex-command splits a window horizontally, you can make it split vertically by prefixing it with :vert[ical] or open a new tab by prefixing it with :tab. Since the :winc[md] ex-command is equivalent to the Ctrl-W prefix, and since Ctrl-W