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…
替换
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