微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

重置Vim中的所有键映射

是否有将密钥映射重置为其认值的命令?

对于所有这些,不仅仅是一把钥匙.

插件可能吗?

您可以通过运行一些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>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐