Skip to content
Search

Vim:KeyMapping

lastmod 2023-04-22created 2016-01-097 edits

Notes on modes (Mode) and mappings (Mapping).

Mode

When mapping, putting the mode as a prefix applies a mapping that works only in that mode.

[모드][명령]

For example, use :nmap, :vmap, and so on.

Vim-map-mode-letter.png

Vim-map-mode-table.png

map

The :map command defines key mappings for normal mode.

noremap

NO-REcursive MAPping Mode. To prevent mappings from nesting, use the :noremap command.

unmap

To remove a mapping, use the :unmap command.

Example

nmap <silent> ;s :call ToggleSyntax()<CR>

nmap is short for "normal-mode key mapping". The <silent> option after nmap suppresses the display of commands executed during the mapping so that the new ;s command can do its job properly.

See also

Favorite site

author Zer0 sitemap