Reputation: 7925
Is it possible to disable/remove all mapping/commands in order to remap them all from scratch?
Upvotes: 2
Views: 158
Reputation: 172570
To shed some light on the behavior and documentation of :mapclear
:
The built-in stuff (e.g. the w
normal mode movement) is called commands. The keys that trigger them can be changed; this is a mapping. Vim comes with some plugins and settings enabled out of the box; these are referred to as default mappings.
Upvotes: 0
Reputation: 172570
To disable all built-in commands, you have to override them with a no operation mapping (:help <Nop>
), like this:
:noremap w <Nop>
But, if you intend to remap them later, anyway, there's no need for this, as the remapping will override the command, anyway.
Upvotes: 2
Reputation: 34072
From the vim help:
:mapc[lear] (nvo modes)
:nmapc[lear] (n mode)
:cmapc[lear] (c mode)
... and so on
Remove ALL mappings from the modes where the map command applies.
Upvotes: 1