Set the language (locale)
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Set the language (locale).
Locale
- LC_TIME
en_US.UTF-8- LC_MESSAGES
en_US.UTF-8
Command entered · ready to apply
Locale
- LC_TIME
en_US.UTF-8- LC_MESSAGES
en_US.UTF-8
Command line
- Typed text
:language time C- Insertion offset
16
Set the time category to C; the prepared native message locale remains en_US.UTF-8. Vim also clears the LC_ALL environment override and enforces the numeric C locale.
Locale
- LC_TIME
C- LC_MESSAGES
en_US.UTF-8
Before & after
Before
Locale
- LC_TIME
en_US.UTF-8- LC_MESSAGES
en_US.UTF-8
After
Locale
- LC_TIME
C- LC_MESSAGES
en_US.UTF-8
Documentation-backed illustration. the shown en_US.UTF-8 locale is installed and selected for time and messages; Vim supports :language time with native LC_MESSAGES; LC_ALL is empty, LC_MESSAGES and LANG consistently select en_US.UTF-8, and LANGUAGE has no conflicting override; the C locale is available. Set the time category to C; the prepared native message locale remains en_US.UTF-8. Vim also clears the LC_ALL environment override and enforces the numeric C locale. Primary help: :language.
alpha
beta
gammaCursor on line 1, column 1Details & Vim help
Set the language (locale). This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :lan[guage] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.