Simply put :map
and :noremap
are recursive and non-recursive mapping commands.
Huh?
Let’s say you have the following in your .vimrc
.vimrc
-
j
will be mapped tok
-
L
will also be mapped tok
, becausej
is expanded for recursive mapping. -
m
will be mapped toj
(not tok
)
Modes
Since Vim has different modes, Normal, Insert, Visual and so on, mappings can be set for these modes. For example,:vmap
and :vnoremap
is for Visual mode mappings.