I saw this on reddit, and it reminded me of one of my vim gripes: It shows the UI in German. Damn you, vim! I want English, but since my OS is set up in German (the standard at our office), I guess vim is actually trying to be helpfull.
What magic incantations must I perform to get vim to switch the UI language? I have tried googling on various occasions, but can't seem to find an answer (No, Google, you're my friend *pat*, *pat*, but I allready know how to change the syntax highlighting, thank you!)...
-
Start vim with a changed locale:
LC_ALL=en_GB.utf-8 vimOr export that variable per default in your bashrc/profile.
From Armin Ronacher -
:help language
:language fr_FR.ISO_8859-1
From Ken -
As Ken noted, you want the
:languagecommand.Note that putting this in your
.vimrcor.gvimrcwon’t help you with the menus in gvim, since their definition is loaded once at startup, very early on, and not re-read again later. So you really do need to setLC_ALL(or more specificallyLC_MESSAGES) in your environment – or on non-Unixoid systems (eg. Windows), you can pass the--cmdswitch (which executes the given command first thing, as opposed to the-coption):gvim --cmd "lang en_US"As I mentioned, you don’t need to use
LC_ALL, which will forcibly switch all aspects of your computing environment. You can do more nuanced stuff. F.ex., my own locale settings look like this:LANG=en_US.utf8 LC_CTYPE=de_DE.utf8 LC_COLLATE=CThis means I get a largely English system, but with German semantics for letters, except that the default sort order is ASCIIbetical (ie. sort by codepoint, not according to language conventions). You could use a different variation; see
man 7 localefor more.Daren Thomas : I will have to check this out some more - it is not currently working AFAIR, but will only have access to the machine in question next wednesday. Thank you for your reply.From Aristotle Pagaltzis -
Putting this line of code at the top of _vimrc saved my day:
:set langmenu en_US.UTF-8Rytmis : Actually that's set langmenu=en_US.UTF-8, at least on my gVim 7.2From SeasonedCoder -
For reference, in Windows (7) I just deleted the directory
C:\Program Files (x86)\Vim\vim72\lang. That made it fallback to en_US.From August Lilleaas
0 comments:
Post a Comment