vim relative numbers display current line code example Example 1: vim relative numbers :set relativenumber Example 2: vim show line numbers :set number