How do you find where a key mapping was defined?
:verbose map <key>
Use :verbose map to see the mapping definition and the file/line where it was set.
11 results for ":verbose map"
:verbose map <key>
Use :verbose map to see the mapping definition and the file/line where it was set.
:verbose map <key> or :verbose set option?
The :verbose prefix shows where a mapping, setting, command, or function was defined — which file and line number.
command-line #command-line #debugging #config #mappings #workflow
:verbose set option?
The :verbose prefix shows where an option was last set (which file, which line).
:verbose nmap <leader>
The :verbose prefix on mapping commands shows not just the mapping definition but also the file and line number where it was defined.
:filter /pattern/ command
The :filter command restricts the output of another Ex command to only lines matching a given pattern.
:verbose set {option}?
:verbose set {option}? shows the current value of an option and reports exactly which file set it last — the full path and line number.
map() and filter() with lambdas
Vim 8 introduced lambda expressions with the syntax {args -> expr}, enabling concise inline list transformations.
:xmap
:vmap applies to both visual mode and select mode, which can silently break snippet plugins (like UltiSnips, LuaSnip) that use select mode to position the curso
:nnoremap / :inoremap / :vnoremap
Vim has two types of key mappings: recursive (:map, :nmap, :imap) and non-recursive (:noremap, :nnoremap, :inoremap).
:messages
:messages displays the full log of recent Vim messages — errors, warnings, echo output, and status notifications.
let mapleader = ' ' then nnoremap <leader>key command
The leader key is a configurable prefix for your custom key mappings.