Vim Recall繁體中文

Load the following keymaps until EOF

:loadkeymap

Example

Normal 0 / 2

Load the following keymaps until EOF.

Buffer language mappings

Mappings
none
Before & after

Before

Buffer language mappings

Mappings
none

After

Buffer language mappings

a
A
b
B
b:keymap_name
demo

Documentation-backed illustration. +keymap support and the shown source file; :loadkeymap is used inside a keymap file, not as a standalone Normal-mode key. While sourcing this keymap file, :loadkeymap reads the remaining lines as buffer-local language mappings a→A and b→B. Primary help: :loadkeymap.

Sample buffer
let b:keymap_name = "demo"
loadkeymap
a A
b B
Cursor on line 1, column 1
Details & Vim help

Load the following keymaps until EOF. 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 :loadk[eymap] 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.