Load the following keymaps until EOF
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Load the following keymaps until EOF.
Buffer language mappings
- Mappings
none
Command entered · ready to apply
Buffer language mappings
- Mappings
none
Command line
- Typed text
:source example-keymap.vim- Insertion offset
26
While sourcing this keymap file, :loadkeymap reads the remaining lines as buffer-local language mappings a→A and b→B.
Buffer language mappings
- a
A- b
B- b:keymap_name
demo
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.
let b:keymap_name = "demo"
loadkeymap
a A
b BCursor on line 1, column 1Details & 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.