首页 / 知识
为什么vim中是切换新行
2023-04-15 21:03:00

Why is
|
1 2 | :%s/%/ /g |
但是,当替换字符的行尾和换行符时,可以这样做:
1 2 | :%s/ /%/g |
手册的哪个部分记录了这些行为,它们背后的原因是什么?
从http:/ / / / vim.wikia.com维基搜索:_ _ replace布尔P></
When Searching
...
is newline,
is
CR (carriage return =Ctrl-M =^M )When Replacing
...
is newline,
is a null byte (
0x00 ).
模式八:从在线文档P></
matches
matches an end-of-line -
When matching in a string instead of
buffer text a literal newline
character is matched.
另一个层面
- 我知道你不能使用
\0 to均值NULL ,知道你使用
- 我知道你不能使用
to均值
,知道你使用。
- 我知道你不能使用
to
均值,但我不知道谁会想要的字符的文件,在线的目的。
-?P></
Technical detail:
characters in the file are stored as in memory. In the display
they are shown as"^@ ". The translation is done when reading and writing
files. To match awith a search pattern you can just enter CTRL-@ or
"CTRL-V 000". This is probably just what you expect. Internally the
character is replaced with ain the search pattern. What is unusual is
that typing CTRL-V CTRL-J also inserts a, thus also searches for a
in the file. {Vi cannot handlecharacters in the file at all}
在第一
1 | :[range]s[ubstitute]/{pattern}/{string}/[flags] [count] |
通知
For the
{pattern} see|pattern| .
{string} can be a literal string, or something
special; see|sub-replace-special| .
我知道现在你知道the search和替代模式的不同模式的行动规则。如果你
同时,你需要
(to this part of the shortcut is
最新内容
相关内容
linux字符动画命令?
linux字符动画命令?,工作,系统,地址,信息,命令,目录,工具,时间,标准,基础,Linux常用基本命令大全介绍linux常用命令: pwd命令 该命令的英文解释linux文本查询命令?
linux文本查询命令?,标准,命令,文件,工具,数据,信息,位置,系统,内容,文本,Linux下Grep命令的详细使用方法?1、查找root目录下包含Linux的文件,linux命令被替换文件?
linux命令被替换文件?,系统,文件,命令,批量,工具,电脑,工作,保险,实时,字符串,linux替换文件命令按住Shift键不放,然后对着桌面右键,选择在此处linux在线命令文本?
linux在线命令文本?,系统,工作,信息,在线,地址,命令,基础,标准,工具,目录,Linux常用命令linux系统常用操作命令如下:ls:全拼list,功能是列出目录字符串查找命令linux?
字符串查找命令linux?,系统,字符串,工具,信息,文件,命令,字符,选项,文本,范本,如何在Linux下查找文件内容包含某个特定字符串的文件在linux中glinux编写文本命令?
linux编写文本命令?,工作,系统,命令,第一,信息,发行,代码,名字,文件,终端,linux中编辑文件命令linux常用命令有pwd命令、cd命令、ls命令、catlinuxvi替换命令?
linuxvi替换命令?,档案,位置,命令,工作,底部,模式,编辑,文件,控制台,字符,linux用VI编辑后保存退出命令是什么啊?linux退出vi编辑命令有四种:使linux压缩文本的命令?
linux压缩文本的命令?,系统,图片,命令,设备,工具,位置,软件,管理,文件,目录,如何在Linux上使用tar命令解压和压缩文件1、解压 tar.bz2/bzip 归linux替换日志命令?
linux替换日志命令?,服务,系统,软件,代码,信息,文件,日志,首次,可取,工具,linux下,批量清空但不删除*.log日志的日志文件命令是什么?重启rsysl清空linux命令搜索?
清空linux命令搜索?,软件,系统,情况,命令,增长,工具,号码,密码,名称,位置,如何来清除Linux操作系统命令的历史记录clean 命令删除所有的软件安linux命令替换字符串?
linux命令替换字符串?,字符串,文件,批量,首次,数据,命令,内容,方法,用字,结尾,linux下批量查询文件内容字符串并替换一)通过vi编辑器来替换。vilinux命令中转义字符?
linux命令中转义字符?,标准,本行,密码,字符,电脑,系统,环境,数据,命令,终端,linux有哪些需要转义的字符(1)转义字符“”如果将“”放到特殊字符