我想导航到一行并立即开始输入.这应该替换现有行的内容.它基本上替换了一个行命令,但内联类似于我们可以通过Change Inline一词实现的内联c+i+w.如果没有先行,然后按dd,然后进入插入模式并键入内容,我该怎么办 呢?
S应该做你想做的事.它会删除该行并将您置于插入模式.
S 是...的同义词 cc
从 :h cc
cc
["x]cc Delete [count] lines [into register x] and start
insert linewise. If 'autoindent' is on, preserve
the indent of the first line.
Run Code Online (Sandbox Code Playgroud)
从 :h S
S
["x]S Delete [count] lines [into register x] and start
insert. Synonym for "cc" linewise.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
148 次 |
| 最近记录: |