当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > VI 快速上手

Unix/Linux
在Linux操作系统上运行Windows应用程序
RedHat AS 3.0下高可用性集群配置
一个NAT+SQUID+DNAT+FORWARD+反弹式FIREWALL的例子
安装显卡好简单
硬盘安装 RedHat9 心得
linux忘记了密码怎么办(lilo/grub)
vmware 配置实例-linux host + windows guest + fire
Linux下Makefile的automake生成全攻略
Linux中流媒体Helix Server的安装和配置
利用shell编程实现DOS风格的Linux命令行
设置一个高容量的Linux POP3服务器
如何在Linux环境模拟DOS命令
Linux系统文件命令精通指南(下)
如何提高Linux操作系统速度
Linux系统文件命令精通指南(上)
GCC精彩之旅
分布式拒绝服务攻击(tfn2k)攻击及iptables过滤测试
Iptables来限制上QQ
Linux下IpTables的配置
无法进入图形界面的解决过程

Unix/Linux 中的 VI 快速上手


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 44 ::
收藏到网摘: n/a

  按键             功能
h                 left

j                  down

k                 up

l                  right

nh               n char left

nj                n char down

w                 fwd word

b                 back word

H                 upper left of screen

M                 mid screen

L                  lowest line of screen

G                  bottom of file

nG                to line n

0                  begin line

$                  end line

i                   insert before

a                  insert after

A                  ins end line

o                  opens line

O                 opens line above

xp                 transpose

J                   join lines

rC                 rep char "C"

r                   rep with <CR>

R                  rep to esc

u                  undoes last

x                  del char

dw               del word

nx                del n char

ndw             del n words

dd                del line

ndd              del n lines

D                 to end the line

^L                redraw screen

z                  current line to top

z-                 current line to bottom

z.                 line to middle screen

^F                page fwd

^B                page back

^D               1/2 page forward

^U               1/2 page back

yy                 stores current line in buffer

nyy      &n