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

Unix/Linux
FreeBSD学习笔记
FREEBSD服务器端的ARP绑定脚本
freebsd系统下安装mpd
FreeBSD更新 Port Tree
整理FreeBSD系统安装时关于硬盘参数提示的处理方法
FreeBSD系统下创建DVD.iso安装光盘
freebsd系统上修改mac地址的方法
FreeBSD的软件管理
OpenBSD系统 DHCP 多 vlan 配置
我的openBSD4.1安装图解笔记
unix系统高手的操作习惯
Freebsd 下运行 QQ For Linux 的方法
FreeBSD下创建安全的Web服务器
UNIX系统正确关机方法
让OpenSoralis进入纯文本模式
freeBSD创建svn仓库
Unix 系统里尽量不要使用的命令
UNIX下VI编辑器使用
UNIX系统下监视磁盘空间和使用情况
Freebsd7.0+Apache2.2+MySQL5+PHP5安装配置

Unix/Linux 中的 VI 快速上手


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