Re: Counting ; character

2010-02-07 Thread Tony Mechelynck
On 15/12/09 22:44, Chris Jones wrote: On Tue, Dec 15, 2009 at 04:20:05PM EST, Christian Brabandt wrote: Hi On Di, 15 Dez 2009, Christian Brabandt wrote: đ)I changed your function to save and restore cursor position. ē)http://www.vim.org/scripts/script.php?script_id=1530 Grml, thouse were

Re: Counting ; character

2009-12-23 Thread Chris Jones
On Tue, Dec 15, 2009 at 04:20:05PM EST, Christian Brabandt wrote: Hi On Di, 15 Dez 2009, Christian Brabandt wrote: đ)I changed your function to save and restore cursor position. ē)http://www.vim.org/scripts/script.php?script_id=1530 Grml, thouse were supposed to be footnotes. Don't

Counting ; character

2009-12-15 Thread epanda
Hi, I would like to count numbers of ; in a line before position of my cursor. I am doing a search like that : search(';;\{1,30}','w') ;foo;;bar= should return 2 ;foo1;foo;;bar= should return 3 ;foo1;foo2;foo;;bar= should return 4 ;;foo;;bar= should return 0 Thanks -- You

Re: Counting ; character

2009-12-15 Thread Tim Chase
I would like to count numbers of ; in a line before position of my cursor. I am doing a search like that : search(';;\{1,30}','w') ;foo;;bar= should return 2 ;foo1;foo;;bar= should return 3 ;foo1;foo2;foo;;bar= should return 4 ;;foo;;bar= should return 0 There are

Re: Counting ; character

2009-12-15 Thread Christian Brabandt
Hi epanda! On Di, 15 Dez 2009, epanda wrote: I would like to count numbers of ; in a line before position of my cursor. I am doing a search like that : search(';;\{1,30}','w') ;foo;;bar= should return 2 ;foo1;foo;;bar= should return 3 ;foo1;foo2;foo;;bar= should return

Re: Counting ; character

2009-12-15 Thread epanda
On 15 déc, 14:39, Christian Brabandt cbli...@256bit.org wrote: Hi epanda! On Di, 15 Dez 2009, epanda wrote: I am doing a search like that : search(';;\{1,30}','w') I don't understand. Where is the cursor? And I don't really understand the count logic either. regards, Christian --

Re: Counting ; character

2009-12-15 Thread epanda
NB : in fact I have to search the nth ; at the line just before. How can I jump directly to the third ; at the previous line ? Ok I have forgotten Nf; normal command to go to N'th ; to the right Thank you very much -- You received this message from the vim_use maillist. For more

Re: Counting ; character

2009-12-15 Thread Christian Brabandt
On Tue, December 15, 2009 2:57 pm, epanda wrote: Sorry, the search command send cursor where occurence is found : here = ;; cursor is here | V ;foo1;foo;;bar= should return 3 Ok, so your cursor in on the first of the 2 consecutive ';;', right? And from your

Re: Counting ; character

2009-12-15 Thread Tim Chase
Christian Brabandt wrote: On Tue, December 15, 2009 2:57 pm, epanda wrote: Sorry, the search command send cursor where occurence is found : here = ;; cursor is here | V ;foo1;foo;;bar= should return 3 Ok, so your cursor in on the first of the 2 consecutive

Re: Counting ; character

2009-12-15 Thread epanda
On 15 déc, 15:22, Tim Chase v...@tim.thechases.com wrote: Christian Brabandt wrote: On Tue, December 15, 2009 2:57 pm, epanda wrote: Sorry, the search command send cursor where occurence is found : here =   ;; cursor is here             |            V ;foo1;foo;;bar    = should

Re: Counting ; character

2009-12-15 Thread Christian Brabandt
Hi epanda! On Di, 15 Dez 2009, epanda wrote: Yes you've seen my cursor pos Christian. Is it faster than my func ? Interesting challenge ;) I changed your function a little bitđ and made a test: com! Count :call CountCharBeforeCursor(';') com! Count1 :let

Re: Counting ; character

2009-12-15 Thread Christian Brabandt
Hi On Di, 15 Dez 2009, Christian Brabandt wrote: đ)I changed your function to save and restore cursor position. ē)http://www.vim.org/scripts/script.php?script_id=1530 Grml, thouse were supposed to be footnotes. Don't know, why mutt mangled this mail back to latin1, it was supposed to be in

Re: Counting ; character

2009-12-15 Thread Chris Jones
On Tue, Dec 15, 2009 at 04:20:05PM EST, Christian Brabandt wrote: Hi On Di, 15 Dez 2009, Christian Brabandt wrote: đ)I changed your function to save and restore cursor position. ē)http://www.vim.org/scripts/script.php?script_id=1530 Grml, thouse were supposed to be footnotes. Don't

Re: Counting ; character

2009-12-15 Thread Christian Brabandt
Hi Chris! On Di, 15 Dez 2009, Chris Jones wrote: I've only seen this happen on this list, which happens to also be a google group. What makes you think mutt is the culprit? First guess. Actually, I think you are right, cause in my sent box, the mail looks alright. It was sent with

Re: Counting ; character

2009-12-15 Thread Chris Jones
On Tue, Dec 15, 2009 at 05:12:40PM EST, Christian Brabandt wrote: Hi Chris! On Di, 15 Dez 2009, Chris Jones wrote: I've only seen this happen on this list, which happens to also be a google group. What makes you think mutt is the culprit? First guess. Actually, I think you are