Vim Recall繁體中文

Set the language (locale)

:language

Example

Normal 0 / 2

Set the language (locale).

Locale

LC_TIME
en_US.UTF-8
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.

Sample buffer
alpha
beta
gamma
Cursor on line 1, column 1
Details & 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.