Remapping commands
Now that you are comfortable working with plugins, you may want to consider customizing your Vim further by remapping commands to suit your preferences. Plugins are written by many kinds of different people, and everyone’s workflow is different. Vim is infinitely extensible, allowing you to remap nearly every action, change certain default behaviors, and really make Vim your own. Let’s talk about remapping commands.
Vim allows you to remap certain keys to be used in place of other keys. :map
and :noremap
provide just that:
:map
is used for recursive mapping in normal, visual/select, and operator-pending modes:noremap
is used for non-recursive mapping
This means that commands remapped with :map
are aware of other custom mappings, while :noremap
works with system defaults.
Avoiding mapping collisions
Before you decide to create a new mapping, you may want to see whether the key or sequence you’re mapping to is already...