Search code examples
vimvim-syntax-highlighting

Why is line highlighting not working in vim?


I am trying to use dracula theme for vim and have installed it successfully using vundle on my gnome-terminal.

The issue that I am facing is that the current line and line numbers aren' translucently displayed as shown on the official site.

How it should look like

(source: draculatheme.com)

Notice how Line 57 and the line numbers side panel are displayed a bit greyishly? It doesn't appear that way in my install. I am a beginner with vim so any help is appreciated.

Here are my dotvim files as a reference.

Update(13/01/2019): I am unable to provide the screenshot of this issue since it has been lost. I was able to fix the line highlighting by enabling cursorline for vim. To fix line number pane highlighting, I followed the instructions over here.


Solution

  • To me that screenshot looks like it was taken with cursorline enabled. Vim current line highlighting is enabled with:

    :set cursorline
    

    If that achieves the affect you're after, drop it in your vimrc. More info: :help cursorline and :help cursorcolumn.