I'm trying to define a function that will make it easier to see where the cursor is location by putting cross-hairs around it for 100ms.
Here's my attempt:
function! Flash()
set cursorline cursorcolumn
sleep 100m
set nocursorline nocursorcolumn
endfunction
nnoremap <leader>fl :call Flash()
It seems though that the above function is calling the sleep at the beginning rather than in between the two "set" calls.
Is there something fundamental about "sleep" that I am misunderstanding?