:%s/^\(.*\)$/"\1"c
s: search and replace
^\(.*\)$: the line
change to:
"old line"c
博客展示了一段文本搜索替换的内容,使用了特定的命令格式,将每行文本替换为带引号并以“c”结尾的形式,如将原行替换为“old line”c 。
:%s/^\(.*\)$/"\1"c
s: search and replace
^\(.*\)$: the line
change to:
"old line"c
845

被折叠的 条评论
为什么被折叠?