Vi:修订间差异
跳到导航
跳到搜索
(创建页面,内容为“=== select-editor === Select an editor. To change later, run 'select-editor'. # /bin/nano ←— easiest # /usr/bin/vim.basic # /usr/bin/vim.tiny # /bin/ed P.S. Don't listen to it, it's better to vi first… === 替换不可见字符 === %s/\%x05/|/g === 输入不可见字符 === <Ctrl-V>(Windows下<Ctrl-Q>) ^Vnnn (000 <= nnn <= 255) === 定位某一行 === 10 + shift + G === 显示行号 === <nowiki>:</nowiki>set nu === 复制 === 2yy, p 分类:D…”) |
无编辑摘要 |
||
第9行: | 第9行: | ||
P.S. Don't listen to it, it's better to vi first… | P.S. Don't listen to it, it's better to vi first… | ||
=== | === 替换 === | ||
%s/\%x05/|/g | ens3 -> enp0s3: :1,$s/ens3/enp0s3/g -.OR.- :%s/ens3/enp0s3/g | ||
删除不可见字符 5(ASCII) -> |: :%s/\%x05/|/g | |||
=== 输入不可见字符 === | === 输入不可见字符 === | ||
<Ctrl-V>(Windows下<Ctrl-Q>) | <Ctrl-V>(Windows下<Ctrl-Q>) | ||
^Vnnn (000 <= nnn <= 255) | |||
^Vnnn (000 <= nnn <= 255) | |||
=== 定位某一行 === | === 定位某一行 === | ||
10 + shift + G | 10 + shift + G | ||
=== 显示行号 === | === 显示行号 === | ||
:set nu | |||
=== 复制 === | === 复制 === | ||
2yy, p | 2yy, p | ||
[[分类:Develop]] | [[分类:Develop]] | ||
[[分类:Linux]] | [[分类:Linux]] |
2024年12月10日 (二) 13:20的版本
select-editor
Select an editor. To change later, run 'select-editor'.
- /bin/nano ←— easiest
- /usr/bin/vim.basic
- /usr/bin/vim.tiny
- /bin/ed
P.S. Don't listen to it, it's better to vi first…
替换
ens3 -> enp0s3: :1,$s/ens3/enp0s3/g -.OR.- :%s/ens3/enp0s3/g 删除不可见字符 5(ASCII) -> |: :%s/\%x05/|/g
输入不可见字符
<Ctrl-V>(Windows下<Ctrl-Q>) ^Vnnn (000 <= nnn <= 255)
定位某一行
10 + shift + G
显示行号
:set nu
复制
2yy, p