I am using two different keyboard layouts (depending on the computer I use) on the same server (one being AZERTY, the other QWERTY).
I would like to have "conditional" mapping options in my .vimrc file, depending on my layout, something like :
if (keyboard_layout == QWERTY) nnoremap : ; nnoremap ; : elseif (keyboard_layout == AZERTY) inoremap :w <Esc>:w<Return> endif
Is it possible ? Or is there a "workaround" not too heavy ?
(sorry for the syntax, I haven't coded much .vimrc files yet)
User @statox gave a very complete answer based on another question asked, I could not test it because I am not 'root' user on the server I'm working on.
I found another way through defining a function, that I posted as answer here.