是否有将密钥映射重置为其默认值的命令?
对于所有这些,不仅仅是一把钥匙.
或插件可能吗?
您可以通过运行一些mapclear系列命令来删除某些模式的所有映射.
这取自:h mapclear
:mapc[lear] mapmode-nvo :mapc :mapclear :nmapc[lear] mapmode-n :nmapc :nmapclear :vmapc[lear] mapmode-v :vmapc :vmapclear :xmapc[lear] mapmode-x :xmapc :xmapclear :smapc[lear] mapmode-s :smapc :smapclear :omapc[lear] mapmode-o :omapc :omapclear :mapc[lear]! mapmode-ic :mapc! :mapclear! :imapc[lear] mapmode-i :imapc :imapclear :lmapc[lear] mapmode-l :lmapc :lmapclear :cmapc[lear] mapmode-c :cmapc :cmapclear Remove ALL mappings for the modes where the map command applies. {not in Vi} Use the <buffer> argument to remove buffer-local mappings :map-<buffer> Warning: This also removes the default mappings.
:mapclear | mapclear <buffer> | mapclear! | mapclear! <buffer>