.nm 1 turns on line number mode .nm 0 turns it off .nn N turns it off for the next N lines .nm 1 M numbers every M lines following there are other options