Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Vim 的新手。假设我正在编辑文档并在行尾添加了一些单词。我仍处于编辑模式,光标位于行尾。
然后我决定要复制光标前的 4 个单词并将它们粘贴到下面一行的末尾。如果我使用escy4b我会错过最后一个字符。
有经验的 vim 用户如何做到这一点?
我会用Aadd some words to end<esc>then just doj.来重复插入。
Aadd some words to end<esc>
j.
我会用这个:
ESCv4by
或者:
ESC4by$
对于这种特定情况,您的 curosr 位于行尾。