加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

重置Vim中的所有键映射

发布时间:2020-12-15 18:24:57 所属栏目:安全 来源:网络整理
导读:是否有将密钥映射重置为其默认值的命令? 对于所有这些,不仅仅是一把钥匙. 或插件可能吗? 您可以通过运行一些mapclear系列命令来删除某些模式的所有映射. 这取自:h mapclear :mapc[lear] mapmode-nvo :mapc :mapclear:nmapc[lear] mapmode-n :nmapc :nmapc
是否有将密钥映射重置为其默认值的命令?

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

或插件可能吗?

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读