Ghi*_*taB 10 vim keyboard-shortcuts
以下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?
Ion*_*zău 13
有这样的缓冲区:
Lorem ipsum dolor
将光标移动(?)在ipsum单词的中间:
Lorem ip?um dolor
现在按de:
Lorem ip?dolor
光标删除了当前单词中的字母,直到结束,但没有空格.
这样做时dw,空间将被删除:
Lorem ip?olor
rom*_*inl 13
dw 意思是"从这里切到下一个词".
before: fo[o]bar baz
        dw
after:  fo[b]az
de 意思是"从这里切到当前词的末尾".
before: fo[o]bar baz
        de
after:  fo[ ]baz