Didn’t know you can do this until now, and it’s so awesome!

Add this in .vimrc:

`set cursorline
highlight CursorLine guibg=#F1F5FA
`

To highlight the current line only in the active window, throw these in too:

`autocmd WinEnter * setlocal cursorline
autocmd WinLeave * setlocal nocursorline
`

More info:


blog comments powered by Disqus