Vim Recall繁體中文

Define language mappings

:lmap

Example

Normal 0 / 2

Define language mappings.

Example mappings

Empty
Before & after

Before

Example mappings

Empty

After

Example mappings

l · <F5>
example · recursive

Start in Normal mode. F5 is an example mapping in this isolated process. The panel shows its actual mode, left-hand side, right-hand side and remapping flag.

Sample buffer
one two
three four
five six
keep
Cursor on line 1, column 1
Details & Vim help

Example replayed in Vim

Define language mappings. 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 :lm[ap] 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. These use language mapping mode (Lang-Arg), distinct from ordinary Insert and Command-line mappings. Definitions are global by default; <buffer> selects the current buffer. Options such as iminsert and imsearch affect when language mappings are used; definition does not require activating them.