Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议添加:从另一行拷贝 #31

Open
VimWei opened this issue Dec 31, 2018 · 0 comments
Open

建议添加:从另一行拷贝 #31

VimWei opened this issue Dec 31, 2018 · 0 comments

Comments

@VimWei
Copy link

VimWei commented Dec 31, 2018

24.5 从另一行拷贝

CTRL-Y 命令插入光标上方的字符。当你复制前一行文本的时候,这个命令很有用。例
如,你有这么一行 C 代码:

b_array[i]->s_next = a_array[i]->s_next; ~

现在你需要把这一行再键入一次,并以 "s_prev" 取代 "s_next"。换行以后,按 14 次
CTRL-Y,直到光标位于 "next" 的 "n" 上:

b_array[i]->s_next = a_array[i]->s_next;~
b_array[i]->s_ ~

现在你键入 "prev":

b_array[i]->s_next = a_array[i]->s_next; ~
b_array[i]->s_prev ~

继续按 CTRL-Y 直到下一个 "next":

b_array[i]->s_next = a_array[i]->s_next;~
b_array[i]->s_prev = a_array[i]->s_ ~

现在键入 "prev;" 以结束这一行。

CTRL-E 命令操作起来跟 CTRL-Y 一样,只不过它插入光标下方的字符。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant