Highlight cursor line after cursor jump

From Vim Tips Wiki

Use this code to highlight the cursor line after a jump. This makes it easy to spot the new cursor position. The highlight will be removed automatically when you move the cursor within the current line, or down or up by one line.

Then, \tc in normal mode allows you to toggle a persistent or transient cursorline ('tc' is a mnemonic for "toggle cursor").

By default, in a cterm, this highlights the current line by underlining it. Is it possible to highlight some other way, e.g. by changing the background colour of that line, or formatting the line's text in bold?

The format of the highlight can be set using 'hi CursorLine', eg. 'hi cursorline cterm=bold ctermbg=grey'

It is probably better to use

setlocal cul

and

setlocal nocul

to only change the setting for the buffer you're working in. Also, for some "special" buffers you may add the following code at the beginning of the function to avoid changing the setting (the following skips the function for the NERDTree window):