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

Unix/Linux
Fedora Core 3 使用 YUM 安裝 Mono
Linux网络安全之经验谈2
解决在编译过程中需要链接静态库的问题
LINUX网络安全文献
RHEL AS3U3 "vsftpd dead but subsys locked" problem
系统入侵
Linux上如何阻止系统攻击者
中软Linux邮件系统解决方案
Linux安装要点
XteamLinux系统简介
Linux操作系统分析
红旗RS-Linux安全系统简介
linux系统上的网络应用
Linux下的3个windows仿真器评测(下)
Linux的7件武器(下)
在KDE的菜单&桌面上为某应用程序创建自定义图标的快捷方式?
最基本RedHat7.3汉化步骤
RedHatLinux网络服务器构架实务(三)
RedHatLinux网络服务器构架实务(二)
RedHatLinux网络服务器构架实务(一)

Unix/Linux 中的 VI 快速上手


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