epanda schrieb:
> Hi,
> 
> I would like to count number of character ; I have at the beginning of
> a line like that :
> ;;foo;bar;;
> 
> 
> I want a count = 2 but this command returns 5.
> 
> :.s/;/&/gn

:s/\%(^;*\)\@<=;//gn

-- 
Andy


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

Reply via email to