由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - how to insert a column for all slected rows in emacs (转载)
相关主题
How to use sed to add newline character?how to kill a process in emacs?
A question about show diff on vimtwo silly questions :-(
How to do that using "sort" command?Emacs mule
Re: Emacs高手帮忙定义几个热健Funny articles about emacs and vi. (Zhuan)
Re: 为什么emacs自动给我加^M.emacs .el files
Re: 这是为什么?a low_hand_question about emacs.
how to calculate number of letters in emacs?what is the short cut for repeat search in emacs?
emacs问题求教----有关C程序格式[转载] why it is so slow in linux?
相关话题的讨论汇总
话题: line3话题: line1话题: line2话题: emacs
进入Unix版参与讨论
1 (共1页)
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

1 (共1页)
进入Unix版参与讨论
相关主题
[转载] why it is so slow in linux?Re: 为什么emacs自动给我加^M.
关于emacs一问。Re: 这是为什么?
[转载] emacs problemhow to calculate number of letters in emacs?
Emacs question.emacs问题求教----有关C程序格式
How to use sed to add newline character?how to kill a process in emacs?
A question about show diff on vimtwo silly questions :-(
How to do that using "sort" command?Emacs mule
Re: Emacs高手帮忙定义几个热健Funny articles about emacs and vi. (Zhuan)
相关话题的讨论汇总
话题: line3话题: line1话题: line2话题: emacs