Search code examples
vimsyntax-highlightinghighlightline-numbers

Current line number in vim not highlighted with relative line number


So I have relative line numbers turned on with the gruvbox theme and I'm trying to get highlighting of the current line number that I'm on. This works by default when just enabling relative line numbers in the .vimrc of an ssh session but not otherwise. I've tried using :set cursorline but that marks the whole line not just the line number. This is on a mac btw

How it looks in an ssh vs how it looks not in an ssh session


Solution

  • you can enable cursorline

    :set cursorline