mit*_*mit 8 cygwin vim text-editors
我现在在 cygwin 终端中使用 vim。
我正在寻找一种方法来在一行的最后一个字符后面追加单词。当我使用$iall I type 时,会在最后一个字符之前插入。
aki*_*ira 17
只需按A:
A Append text at the end of the line [count] times.
Run Code Online (Sandbox Code Playgroud)
(来自:help A)
您最初的尝试不起作用,因为您使用 进入 EOL $,但随后您使用了i而不是a:
i Insert text before the cursor [count] times.
When using CTRL-O in Insert mode |i_CTRL-O| the count
is not supported.
Run Code Online (Sandbox Code Playgroud)
尽管
a Append text after the cursor [count] times. If the
cursor is in the first column of an empty line Insert
starts there. But not when 'virtualedit' is set!
Run Code Online (Sandbox Code Playgroud)
但正如我所说:真正的解决方案是A.