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 4
>
> ;;foo;;bar => should return 0
I don't understand. Where is the cursor? And I don't really understand
the count logic either.
regards,
Christian
--
hundred-and-one symptoms of being an internet addict:
20. When looking at a pageful of someone else's links, you notice all of them
are already highlighted in purple.
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment