Alignment of current line number in Vim
问题 In Vim I am using relative line numbering and in my .vimrc have highlight CursorLineNr ctermfg=LightGray to make the current line number stand out a bit more. I was wondering if it's possible to also change the alignment of the current line number? By default it's aligned to the left, but I would like to have it align to the right like the other numbers. 回答1: The combination of number and rnu option will change the display of line numbers. If you have nonu and rnu , then the current line