vm/document : port `removeInLine`