winrestview() after PageDown

2006-09-11 Thread Yakov Lerner
I see a case in which winrestview() work incorrectly after PageDown near end-of-file. (This is in the context of scrollfix plugin.) To reproduce: % vim -u NONE -c 'so x.vim'# x.vim is below :help help have some text :set nu see line numbers press seevral

syntax with different language inside

2006-09-11 Thread Victor Hsieh
Hi All,I'm trying to write a syntax file for a grammar called wpm, a simplified version is attached as test.apm in the attachment. And the syntax file is wpm.vim .There are one perl code and one _javascript_. If you opened test.wpm with wpm.vim, only the perl code will be highlighted (but not

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Nikolai Weibull
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex because they have a fixed format. Decimal is not as easy due to there being integers, reals, and general format numbers (ie: #e+/-#) which are all grouped into the Decimal

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Georg Dahn
Nikolai Weibull wrote: This stream of thought mode you're using is more suited for IRC, see http://www.vim.org/community.php. Yes. BTW, this is the list for development of Vim. Many of these Emails don't belong to the development list. General questions about Vim should be asked in the other

Re: Possible addition to the c.vim and perl.vim syntax files

2006-09-11 Thread Mike Williams
Mark Manning did utter on 10/09/2006 23:52: I saw in the c.vim that there was an error statement for octal numbers. There isn't one for hex numbers so I made one really quickly. If you want, just put it into the c.vim file. :-) The test: syn regioncHexErrorstart=0x\x*[g-zG-Z]

Re: Convert to HTML patch. Opinions / Testing.

2006-09-11 Thread Benji Fisher
On Sat, Sep 09, 2006 at 07:03:14PM +0100, Edd Barrett wrote: Here is the patch: http://arameus.net/users/edd/vim-test/2html.vim.diff Also in the same directory you will see the output of my tests, please test them on other browsers. I viewed the output using the following systems and

Re: testing patchlevel from script

2006-09-11 Thread Benji Fisher
On Sun, Sep 10, 2006 at 01:05:11PM +, Yakov Lerner wrote: How can a script test for specific patchlevel ? For example, I have vim 7.0.86 and I need to check in the script that patchlevel is = 7.0.86. But v:version is 700. How ? It would be nice if to have patchlist available through some

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Mark Manning
Nikolai Weibull wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex because they have a fixed format. Decimal is not as easy due to there being integers, reals, and general format numbers (ie: #e+/-#) which are all

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Bill McCarthy
On Mon 11-Sep-06 3:02am -0600, Nikolai Weibull wrote: This stream of thought mode you're using is more suited for IRC, see http://www.vim.org/community.php. Alternately, the vim list is a good choice. And never add return receipt requests in posts to a mailing list. -- Best regards, Bill

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Yakov Lerner
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex I'm afraid C does not notion of binary numbers. Yakov

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Nikolai Weibull
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: Creating an error syntax that would highlight the problems rather than just identifying whether or not a number was a decimal number. Sure. A thought, though. This is going to get rather complex and how often have you actually mistyped a

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Georg Dahn
Hi! Sorry, new to the list and I was told not to just send replies privately but to post them publicly. (Damned if you do - damned if you don't!) No, you are not damned, it is just confusing if each of your replies starts a new thread. I have realized very late - after my previous mail -,

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Mark Manning
Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex I'm afraid C does not notion of binary numbers. Yakov On some systems that answer is correct. On others it is not. :-)

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Nikolai Weibull
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex I'm afraid C does not notion of binary numbers. On some systems that answer is

Re: Patch 7.0.096

2006-09-11 Thread Bram Moolenaar
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 Krishna Dara) Solution: Expand the file name. (Yegappan

Re: winrestview() after PageDown

2006-09-11 Thread Bram Moolenaar
Yakov Lerner wrote: I see a case in which winrestview() work incorrectly after PageDown near end-of-file. (This is in the context of scrollfix plugin.) To reproduce: % vim -u NONE -c 'so x.vim'# x.vim is below :help help have some text :set nu see line

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Yakov Lerner
On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex I'm afraid C does not notion of binary numbers. Yakov On some systems that answer is correct.

Re: Possible addition to the c.vim and perl.vim syntax files

2006-09-11 Thread Mike Williams
mwoehlke did utter on 11/09/2006 17:44: Bram Moolenaar wrote: Mark Manning wrote: I saw in the c.vim that there was an error statement for octal numbers. There isn't one for hex numbers so I made one really quickly. If you want, just put it into the c.vim file. :-) The test: syn region

Re: Possible addition to the c.vim and perl.vim syntax files

2006-09-11 Thread mwoehlke
Mike Williams wrote: mwoehlke did utter on 11/09/2006 17:44: Bram Moolenaar wrote: I don't know what the rules are in all kinds of C, but at least things like 0x0L, 0x0u, 0x0UL are valid. Using a match instead of region would be simpler. If one takes KATE's c.xml as canonical, supported

Re: Possible addition to the c.vim and perl.vim syntax files

2006-09-11 Thread mwoehlke
mwoehlke wrote: Mike Williams wrote: mwoehlke did utter on 11/09/2006 17:44: Bram Moolenaar wrote: I don't know what the rules are in all kinds of C, but at least things like 0x0L, 0x0u, 0x0UL are valid. Using a match instead of region would be simpler. If one takes KATE's c.xml as

Re: Possible addition to the c.vim and perl.vim syntax files

2006-09-11 Thread Nikolai Weibull
On 9/11/06, mwoehlke [EMAIL PROTECTED] wrote: mwoehlke wrote: Mike Williams wrote: mwoehlke did utter on 11/09/2006 17:44: Bram Moolenaar wrote: I don't know what the rules are in all kinds of C, but at least things like 0x0L, 0x0u, 0x0UL are valid. Using a match instead of region would

Re: Convert to HTML patch. Opinions / Testing.

2006-09-11 Thread Edd Barrett
Hi Benji, You are absolutely correct. This must have slipped past me. I have ammended my patch. New patch is here: http://arameus.net/users/edd/vim-test/2html.vim.diff Thankyou for your support. Best Regards Edd PS, Does anyone know how to disable HTML sending in gmail? Ezalm does not

Re: Possible addition to the c.vim and perl.vim syntax files

2006-09-11 Thread mwoehlke
Nikolai Weibull wrote: On 9/11/06, mwoehlke [EMAIL PROTECTED] wrote: mwoehlke wrote: Mike Williams wrote: mwoehlke did utter on 11/09/2006 17:44: Bram Moolenaar wrote: I don't know what the rules are in all kinds of C, but at least things like 0x0L, 0x0u, 0x0UL are valid. Using a match

Re: testing patchlevel from script

2006-09-11 Thread Yakov Lerner
On 9/11/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 9/11/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: [a way to create a list of what patches has been applied] Here's a simpler version of that script that doesn't allow for patches to be skipped. I don't know if the Vim build scripts

Patch 7.0.100

2006-09-11 Thread Bram Moolenaar
Patch 7.0.100 Problem:zug may report the wrong filename. (Lawrence Kesteloot) Solution: Call home_replace() to fill NameBuff[]. Files: src/spell.c *** ../vim-7.0.099/src/spell.c Tue Aug 29 17:28:56 2006 --- src/spell.c Mon Sep 11 20:45:35 2006 *** *** 1483,1489

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Mark Manning
Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex I'm afraid C does not notion of binary numbers. Yakov On some

Re: testing patchlevel from script

2006-09-11 Thread A.J.Mechelynck
Nikolai Weibull wrote: On 9/11/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: [a way to create a list of what patches has been applied] Here's a simpler version of that script that doesn't allow for patches to be skipped. I don't know if the Vim build scripts actually allow for patches to be

Re: testing patchlevel from script

2006-09-11 Thread A.J.Mechelynck
Yakov Lerner wrote: On 9/11/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 9/11/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: [a way to create a list of what patches has been applied] Here's a simpler version of that script that doesn't allow for patches to be skipped. I don't know if the Vim

Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Yakov Lerner
On 9/12/06, Mark Manning [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 9/11/06, Mark Manning [EMAIL PROTECTED] wrote: It is fairly easy to check for inconsistencies in Binary, Octal, and Hex I'm afraid C does

adding additional network stuff in RealWaitForChar?

2006-09-11 Thread Gaspar Chilingarov
Hello all vimmers! I would like to ask - how should I add additional stuff in RealWaitForChar? I have some network protocol, when another side periodically send me keepalive messages(every 10-15 secs). I would like to receive them and process. In GUI based vim it was pretty simple -- using

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: Possible addition to the c.vim and perl.vim syntax files

2006-09-11 Thread Mark Manning
Ok, please find attached my corrections to the c.vim file. (Diff instructions.) Many thanks go to Tony for his invaluable help. Especially with the diff command. Synopsis: Because hex values have the suffixes and the underscores it took a while to come up with something which would handle