i like to have line numbers ON in Vim but sometimes line numbers are annoying. I have shortcuts set in .vimrc:
map <c-F12> :set nonumber<ENTER>
map <c-F11> :set number<ENTER>
for turning them off/on.
Is it possible to connect both tasks (turning off/on) under one key? I mean, when line numbers are ON shortcut should turn OFF them and turn ON when line numbers are OFF.