> 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 some crucial details missing:

- you don't indicate the "position of [your] cursor" in the above 
examples

- you don't indicate what you want to do with the count...store 
it in a variable for the current line?  put the count at the 
beginning/end of the line?

- I'm not sure what your search() call is supposed to do in 
relation to the remainder of your email


-tim



-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to