How can I enable 'cursorline' in the preview window?
:ptag to show the preview and like that it shows several lines, but for short functions or member lists it's hard to see the line containing my tag. Using cursorline would help.
I tried this:
autocmd WinEnter * if &previewwindow | setlocal cursorline | endif
The preview window opens without a cursorline (even after
:redraw), but when I switch to it cursorline activates. I want it to work without moving the cursor.
I tried WinNew instead of WinEnter, but that doesn't work at all. I'm not sure why.