1

I use Vim with two keyboard layouts, English and Russian, and to be able to use Vim commands irrespective to the current layout, I have the following snippet in my .vimrc:
" To switch between keyboard layouts, use Control+^ or Control+Space
if g:os ==# 'Darwin'
set keymap=russian-jcukenmac
...