Thanks for clarification! I tested it with Bash script: chars=$(wc -m mylog|cut -d ' ' -f1) lines=$(wc -l mylog|cut -d ' ' -f1) let chars="$chars - $lines" echo $chars
and got the same number as given by vim :%s/.//gn (Which was place from what I got confused.) Hopefully this bug description will help to others. > > I think it's working correctly. > I.E. the \n is included in the count. > > thanks, > Pádraig. >