At the moment I use:
map <C-F2> :set cursorcolumn<Bar>set cursorline<CR>
map <C-F3> :set nocursorcolumn<Bar>set nocursorline<CR>
How to modify the mapping to toggle on/off only by using C-F2?
map <C-F2> :set cursorcolumn!<Bar>set cursorline!<CR>
From :help toggle
:se[t] {option}! or :se[t] inv{option} Toggle option: Invert value. {not in Vi}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With