My vimtutor is in portuguese. I don't know why, because my Windows OS is in english, so as everything else. I don't remember to have chosen "portuguese" anywhere in the vim installing process.
How do I change it to english?
Run vimtutor
(from command line) with 2 letter language code like:
vimtutor en
(for English)
vimtutor pt
(for Portuguese)
etc...
Open tutor with different language with:
vim /usr/share/vim/vim74/tutor/tutor
(for English)
vim /usr/share/vim/vim74/tutor/tutor.pt
(for Portuguese)
etc...
(The same default path applies to Cygwin on Windows. You may want to change vim74
part if you have different version)
Using this method you may actually want to copy the file somewhere else first and then open the copy, because you are going to modify it.
Vimtutor opens in Portuguese by default because you probably have some environmental variable set to Portugese like: LC_ALL
, LANG
, LANGUAGE
(check it with env | grep -P 'LC_ALL|LANG'
. You may want to change it like this:
export LC_ALL=en_US.utf-8
and then run vimtutor
.
vimtutor
program copies this file to a temporary file, so you can muck about at your leisure and not foul anything up ;-) I recommend you do that, instead.
Commented
Aug 13, 2015 at 22:04
This method works well:
export LC_ALL=en_US.utf-8
For the Russian language, for example, then it is necessary to dial the following line:
vimtutor ru
for Portuguese
vimtutor pt
vimtutor en
starts it in english, however this is not the default. If I dovimtutor
only, it opens up in portuguese.v:lang
?:echo v:lang
.:help v:lang
tells me it should be inherited from the OS (Windows in your case), or set explicitly by the user with the:language
command ... But that won't help you, since the tutor file has already been loaded in the wrong language...