vim中de和dw有什么区别?
发布时间:2020-12-16 01:09:56 所属栏目:安全 来源:网络整理
导读:按照 vimtutor技巧,我在第2.3课中找到了以下内容: Many commands that text are made from an operator and a motion.The format for a follows: d motionWhere: d - is the delete operator. motion - is what the operator will operate on (listed below
按照
vimtutor技巧,我在第2.3课中找到了以下内容:
Many commands that text are made from an operator and a motion. The format for a follows: d motion Where: d - is the delete operator. motion - is what the operator will operate on (listed below). A short list of motions: w - until the start of the next word,EXCLUDING its first character. e - to the end of the current word,INCLUDING the last character. $- to the end of the line,INCLUDING the last character. 但是,我没有看到dw和de之间的区别.使用dw和de时的用例是什么?
有这样的缓冲区:
Lorem ipsum dolor 在ipsum字的中间移动光标(?): Lorem ip?um dolor 现在按de: Lorem ip?dolor 光标删除了当前单词中的字母,直到结束,但没有空格. 在执行dw时,空格将被删除: Lorem ip?olor (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 如何限制bash中函数中使用的线程/子进程数
- 单元测试 – 如何在AngularJS中测试$范围$on
- redis学习(二) redis数据结构介绍以及常用命令
- node.js-具有docker的Mongo副本节点
- 为什么我不能在Scala中的this.apply(_)中省略“apply”?
- bash – Bourne shell中的“2 <&1”重定向是什么?
- angularjs – Angular 1.3.14 merge(dst)不存在
- angular – 如何在RC.1中使用新路由器时扩展RouterOutlet
- 使用enter键作为选项卡仅使用angularjs和jqlite
- unix – 使用本地环境中的变量执行单行ssh命令