I know that adding a
! to the end of an option works for some commands, but it doesn't work for
cursorbind. How can I toggle between
nocursorbind with a keybinding?
works. Now the issue is that this option is local to the window and needs to be done into several windows in order to see any result. Moreover, it binds line numbers and not cursor positions.
A mapping could be
nnoremap <silent> <leader>whatever :<c-u>set cursorbind!<cr>:set cursorbind?<cr>