substitute <c-w> in Loc functions