Reputation: 6069
I often write text in Russian. I use set langmap
for translating Russian characters to English, so commands like i
and d
work also in a Russian layout.
But it does not work for a command started from :
like :wq
-- vim translates Ж
to :
as described in langmap, but other characters are unaffected, and I want to use :цй
instead :wq
.
I tried to use :command цй wq
to make alias, but take E182: Invalid comand name
.
Do you have ideas on how to translate Жцй
to :wq
?
Upvotes: 3
Views: 173
Reputation: 31040
You could use cmap
or cabbrev
. For example
cmap цй wq
cabbrev цй wq
cabbrev
is probably what you want since you don't have to enter a Space afterwards.
Upvotes: 3