avatar
w*w
2
ctl-w

【在 m*****i 的大作中提到】
: Thanks
: ...............

avatar
s*d
3
delete one line?
ctrl-k

【在 m*****i 的大作中提到】
: Thanks
: ...............

avatar
r*s
4
M-g for "Goto line"

【在 m*****i 的大作中提到】
: Thanks
: ...............

avatar
t*q
5
assume you know the number of the line.
ctrl + u # ctrl + n
# is the line number

【在 r*****s 的大作中提到】
: M-g for "Goto line"
avatar
p*s
6

M-x goto-line
You can
(global-set-key "\C-hg" 'goto-line)
then the hot key C-h g will do the job.

【在 m*****i 的大作中提到】
: Thanks
: ...............

avatar
p*s
7

You forgot M-< ;)

【在 t******q 的大作中提到】
: assume you know the number of the line.
: ctrl + u # ctrl + n
: # is the line number

avatar
t*q
8
you mean #-1 ?
that is right, since every line start from 0th.
just come back to correct that.

【在 p****s 的大作中提到】
:
: You forgot M-< ;)

avatar
p*s
9
In Emacs, the prefix C-u # indicates how many times to repeat the
followed operations, just like VI's number prefixes.
C-n is 'next-line'.
C-u 10 C-n actually means "repeat next-line operation 10 times".
It doesn't necessarily go to the 10th line unless you go to
the begin of buffer at first, which is done by M-<

【在 t******q 的大作中提到】
: you mean #-1 ?
: that is right, since every line start from 0th.
: just come back to correct that.

avatar
t*q
10
that is exactly what I assuned.
when you want to go to the numbered line.
you give the number from the beginning of the whole article.
you can definately go to the next 10 lines.
which also make sense in my key bundle.
since each line is started from line 0,
if you want to go to the 20th line, you need to skip only 19 lines.
that is the #-1 means.
and the Ctrl+h g bundle does not work for my test unfortunately.
by the way, ctrl+h is still bundled to the online help.

【在 p****s 的大作中提到】
: In Emacs, the prefix C-u # indicates how many times to repeat the
: followed operations, just like VI's number prefixes.
: C-n is 'next-line'.
: C-u 10 C-n actually means "repeat next-line operation 10 times".
: It doesn't necessarily go to the 10th line unless you go to
: the begin of buffer at first, which is done by M-<

avatar
p*a
11
我一直用M-g, 也就是M-x goto-line

【在 m*****i 的大作中提到】
: Thanks
: ...............

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。