You cannot. From `:h 'number'` (emphasis mine): > Print the line number in front of ***each line*** You can only enable `number` or `relativenumber` for the whole window. See: :help 'number' :help 'relativenumber'