Home Explore Blog CI



neovim

56th chunk of `runtime/doc/options.txt`
b16783b0a816b750971cbaedf266cad1fb81ad0aa2891d530000000100000fd5
 global option to the empty
	value did this, which is now deprecated.)
	When the first character is ":", the command is invoked as a Vim
	Ex command prefixed with [count].
	When "man" or "man -s" is used, Vim will automatically translate
	a [count] for the "K" command to a section number.
	See |option-backslash| about including spaces and backslashes.
	Example: >vim
		set keywordprg=man\ -s
		set keywordprg=:Man
<	This option cannot be set from a |modeline| or in the |sandbox|, for
	security reasons.

					*'langmap'* *'lmap'* *E357* *E358*
'langmap' 'lmap'	string	(default "")
			global
	This option allows switching your keyboard into a special language
	mode.  When you are typing text in Insert mode the characters are
	inserted directly.  When in Normal mode the 'langmap' option takes
	care of translating these special characters to the original meaning
	of the key.  This means you don't have to change the keyboard mode to
	be able to execute Normal mode commands.
	This is the opposite of the 'keymap' option, where characters are
	mapped in Insert mode.
	Also consider setting 'langremap' to off, to prevent 'langmap' from
	applying to characters resulting from a mapping.
	This option cannot be set from a |modeline| or in the |sandbox|, for
	security reasons.

	Example (for Greek, in UTF-8):				*greek*  >vim
	    set langmap=ΑA,ΒB,ΨC,ΔD,ΕE,ΦF,ΓG,ΗH,ΙI,ΞJ,ΚK,ΛL,ΜM,ΝN,ΟO,ΠP,QQ,ΡR,ΣS,ΤT,ΘU,ΩV,WW,ΧX,ΥY,ΖZ,αa,βb,ψc,δd,εe,φf,γg,ηh,ιi,ξj,κk,λl,μm,νn,οo,πp,qq,ρr,σs,τt,θu,ωv,ςw,χx,υy,ζz
<	Example (exchanges meaning of z and y for commands): >vim
	    set langmap=zy,yz,ZY,YZ
<
	The 'langmap' option is a list of parts, separated with commas.  Each
	part can be in one of two forms:
	1.  A list of pairs.  Each pair is a "from" character immediately
	    followed by the "to" character.  Examples: "aA", "aAbBcC".
	2.  A list of "from" characters, a semicolon and a list of "to"
	    characters.  Example: "abc;ABC"
	Example: "aA,fgh;FGH,cCdDeE"
	Special characters need to be preceded with a backslash.  These are
	";", ',', '"', '|' and backslash itself.

	This will allow you to activate vim actions without having to switch
	back and forth between the languages.  Your language characters will
	be understood as normal vim English characters (according to the
	langmap mappings) in the following cases:
	 o Normal/Visual mode (commands, buffer/register names, user mappings)
	 o Insert/Replace Mode: Register names after CTRL-R
	 o Insert/Replace Mode: Mappings
	Characters entered in Command-line mode will NOT be affected by
	this option.   Note that this option can be changed at any time
	allowing to switch between mappings for different languages/encodings.
	Use a mapping to avoid having to type it each time!

						*'langmenu'* *'lm'*
'langmenu' 'lm'		string	(default "")
			global
	Language to use for menu translation.  Tells which file is loaded
	from the "lang" directory in 'runtimepath': >vim
		"lang/menu_" .. &langmenu .. ".vim"
<	(without the spaces).  For example, to always use the Dutch menus, no
	matter what $LANG is set to: >vim
		set langmenu=nl_NL.ISO_8859-1
<	When 'langmenu' is empty, |v:lang| is used.
	Only normal file name characters can be used, `/\*?[|<>` are illegal.
	If your $LANG is set to a non-English language but you do want to use
	the English menus: >vim
		set langmenu=none
<	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: >vim
		source $VIMRUNTIME/delmenu.vim
		set langmenu=de_DE.ISO_8859-1
		source $VIMRUNTIME/menu.vim
<	Warning: This deletes all menus that you defined yourself!

			*'langremap'* *'lrm'* *'nolangremap'* *'nolrm'*
'langremap' 'lrm'	boolean	(default off)
			global
	When off, setting 'langmap' does not apply to characters resulting from
	a mapping.  If setting 'langmap' disables some of your mappings, make
	sure this option is off.

						*'laststatus'* *'ls'*
'laststatus'

Title: 'langmap', 'langmenu', 'langremap', and 'laststatus' Options in Vim
Summary
This section continues the discussion of the 'langmap' option for language mode keyboard switching, illustrating its usage and behavior in different modes. It also describes 'langmenu' which specifies the language to use for menu translations by loading language-specific menu files, and 'langremap', a boolean to control whether 'langmap' applies to characters resulting from a mapping. The section begins by reiterating that 'keywordprg' cannot be set from a modeline or in the sandbox for security reasons. The section concludes by introducing the 'laststatus' option.