From :help :language
:
Some systems accept aliases like "en" or
"en_US", but some only accept the full specification
like "en_US.ISO_8859-1". On Unix systems you can use
this command to see what locales are supported:
:!locale -a
On my Ubuntu machine, I get
$ locale -a
C
C.UTF-8
en_US.utf8
POSIX
So maybe the problem is "utf8" vs. "UTF-8".
From :help 'langmenu'
:
This option must be set before loading menus, switching on filetype
detection or syntax highlighting. Once the menus are defined setting
this option has no effect. But you could do this:
:source $VIMRUNTIME/delmenu.vim
:set langmenu=de_DE.ISO_8859-1
:source $VIMRUNTIME/menu.vim
From the comments, you tried putting it at the top of your vimrc. Perhaps there is a system vimrc file that gets in the way. Check with :version
or :scriptnames
. If so, then add something like the suggested lines.
1I've always used
language messages C
. – Ingo Karkat – 11 years ago@IngoKarkat seems to work for the messages but I am still unable to get menu in english, in my opinion vim loads the menu before reading my setting even if they are at the top of my .vimrc and so it uses the default ones – res1 – 11 years ago