k*****u 发帖数: 1688 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: killniu (killniu), 信区: Linux
标 题: how to insert a column for all slected rows in emacs
发信站: BBS 未名空间站 (Sat Jan 14 18:21:31 2012, 美东)
how to do this in emacs:
for example, the following code, how to comment out the line1 line2 line3
part.
That is, change
texttttttttt
tedtTTTTTTTTT
line1
line2
line3
textttttttttt
textttttttttt
to (add ## for each line)
texttttttttt
tedtTTTTTTTTT
##line1
##line2
##line3
textttttttttt
textttttttttt | D**u 发帖数: 179 | 2 I know how to do it in vim...
【在 k*****u 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: killniu (killniu), 信区: Linux : 标 题: how to insert a column for all slected rows in emacs : 发信站: BBS 未名空间站 (Sat Jan 14 18:21:31 2012, 美东) : how to do this in emacs: : for example, the following code, how to comment out the line1 line2 line3 : part. : That is, change : texttttttttt : tedtTTTTTTTTT
| s******0 发帖数: 13782 | 3 vi
%s/^line/\#\#\#line/g
【在 k*****u 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: killniu (killniu), 信区: Linux : 标 题: how to insert a column for all slected rows in emacs : 发信站: BBS 未名空间站 (Sat Jan 14 18:21:31 2012, 美东) : how to do this in emacs: : for example, the following code, how to comment out the line1 line2 line3 : part. : That is, change : texttttttttt : tedtTTTTTTTTT
| k*****u 发帖数: 1688 | 4 【 以下文字转载自 Linux 讨论区 】
发信人: killniu (killniu), 信区: Linux
标 题: how to insert a column for all slected rows in emacs
发信站: BBS 未名空间站 (Sat Jan 14 18:21:31 2012, 美东)
how to do this in emacs:
for example, the following code, how to comment out the line1 line2 line3
part.
That is, change
texttttttttt
tedtTTTTTTTTT
line1
line2
line3
textttttttttt
textttttttttt
to (add ## for each line)
texttttttttt
tedtTTTTTTTTT
##line1
##line2
##line3
textttttttttt
textttttttttt | D**u 发帖数: 179 | 5 I know how to do it in vim...
【在 k*****u 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: killniu (killniu), 信区: Linux : 标 题: how to insert a column for all slected rows in emacs : 发信站: BBS 未名空间站 (Sat Jan 14 18:21:31 2012, 美东) : how to do this in emacs: : for example, the following code, how to comment out the line1 line2 line3 : part. : That is, change : texttttttttt : tedtTTTTTTTTT
| s******0 发帖数: 13782 | 6 vi
%s/^line/\#\#\#line/g
【在 k*****u 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: killniu (killniu), 信区: Linux : 标 题: how to insert a column for all slected rows in emacs : 发信站: BBS 未名空间站 (Sat Jan 14 18:21:31 2012, 美东) : how to do this in emacs: : for example, the following code, how to comment out the line1 line2 line3 : part. : That is, change : texttttttttt : tedtTTTTTTTTT
|
|