change func g:->s:
update for windows