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

Unix/Linux
HP工程师经验分享(38)
HP工程师经验分享(37)
vi介绍编(3)ex命令
Linux中流媒体HelixServer的安装和配置
hp-ux简介
浅谈HP-UX认证
惠普取消3H0关于Openview部分
教你如何学习GRUB
windows box和openssh连接的问题
Linux网络驱动程序编写一
Richard Stallman在清华大学的讲演提要zz
Linux网管123---第4章.安装及硬体组态-5.选择想要安装的套件
Linux系统中的文件管理
cvs常用命令
solaris下的ftp命令介绍保存
lumaqq使用手记
Linux网管123---第4章.安装及硬体组态-1.建立一张安装磁片
硬盘安装LINUXFC4成功,感谢CU
RHCE认证浅析
中国Linux培训炙手可热人才需求将突破120万

Unix/Linux 中的 VI 快速上手


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 90 ::
收藏到网摘: 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