Vi

来自牛奶河Wiki
跳到导航 跳到搜索

select-editor

Select an editor. To change later, run 'select-editor'.

  1. /bin/nano ←— easiest
  2. /usr/bin/vim.basic
  3. /usr/bin/vim.tiny
  4. /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

显示行号

:set nu

复制

2yy, p