added nbsp detection to vi